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