pandemonium_engine/modules/steering_ai/behaviors/gsai_seek.h

30 lines
546 B
C++
Raw Normal View History

#ifndef GSAI_SEEK_H
#define GSAI_SEEK_H
2023-01-14 01:43:20 +01:00
#include "core/object/reference.h"
#include "../gsai_steering_behavior.h"
class GSAITargetAcceleration;
class GSAIAgentLocation;
class GSAISeek : public GSAISteeringBehavior {
GDCLASS(GSAISeek, GSAISteeringBehavior);
public:
2023-01-14 01:43:20 +01:00
Ref<GSAIAgentLocation> get_target();
void set_target(const Ref<GSAIAgentLocation> &val);
2023-01-14 01:43:20 +01:00
void _calculate_steering(Ref<GSAITargetAcceleration> acceleration);
GSAISeek();
~GSAISeek();
protected:
static void _bind_methods();
2023-01-14 01:43:20 +01:00
Ref<GSAIAgentLocation> target;
};
#endif