mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 12:26:59 +01:00
30 lines
546 B
C++
30 lines
546 B
C++
#ifndef GSAI_SEEK_H
|
|
#define GSAI_SEEK_H
|
|
|
|
#include "core/object/reference.h"
|
|
|
|
#include "../gsai_steering_behavior.h"
|
|
|
|
class GSAITargetAcceleration;
|
|
class GSAIAgentLocation;
|
|
|
|
class GSAISeek : public GSAISteeringBehavior {
|
|
GDCLASS(GSAISeek, GSAISteeringBehavior);
|
|
|
|
public:
|
|
Ref<GSAIAgentLocation> get_target();
|
|
void set_target(const Ref<GSAIAgentLocation> &val);
|
|
|
|
void _calculate_steering(Ref<GSAITargetAcceleration> acceleration);
|
|
|
|
GSAISeek();
|
|
~GSAISeek();
|
|
|
|
protected:
|
|
static void _bind_methods();
|
|
|
|
Ref<GSAIAgentLocation> target;
|
|
};
|
|
|
|
#endif
|