pandemonium_engine/modules/steering_ai/behaviors/gsai_pursue.h

37 lines
748 B
C++
Raw Normal View History

#ifndef GSAI_PURSUE_H
#define GSAI_PURSUE_H
2023-01-14 01:43:20 +01:00
#include "core/object/reference.h"
#include "../gsai_steering_behavior.h"
class GSAISteeringAgent;
class GSAITargetAcceleration;
class GSAIPursue : public GSAISteeringBehavior {
GDCLASS(GSAIPursue, GSAISteeringBehavior);
public:
2023-01-14 01:43:20 +01:00
Ref<GSAISteeringAgent> get_target();
void set_target(const Ref<GSAISteeringAgent> &val);
float get_predict_time_max() const;
void set_predict_time_max(const float val);
2023-01-14 01:43:20 +01:00
void _calculate_steering(Ref<GSAITargetAcceleration> acceleration);
float get_modified_acceleration();
2023-01-14 01:43:20 +01:00
virtual float _get_modified_acceleration();
GSAIPursue();
~GSAIPursue();
protected:
static void _bind_methods();
2023-01-14 01:43:20 +01:00
Ref<GSAISteeringAgent> target;
float predict_time_max;
};
#endif