2023-01-13 22:04:30 +01:00
|
|
|
#ifndef GSAI_EVADE_H
|
|
|
|
#define GSAI_EVADE_H
|
2023-01-13 21:13:57 +01:00
|
|
|
|
|
|
|
class GSAIEvade : public GSAIPursue {
|
2023-01-13 21:35:07 +01:00
|
|
|
GDCLASS(GSAIEvade, GSAIPursue);
|
2023-01-13 21:13:57 +01:00
|
|
|
|
2023-01-13 21:35:07 +01:00
|
|
|
public:
|
|
|
|
float _get_modified_acceleration();
|
2023-01-13 21:13:57 +01:00
|
|
|
|
2023-01-13 21:35:07 +01:00
|
|
|
GSAIEvade();
|
|
|
|
~GSAIEvade();
|
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-13 21:35:07 +01:00
|
|
|
// Calculates acceleration to take an agent away from where a target agent is
|
|
|
|
// moving.
|
|
|
|
// @category - Individual behaviors
|
2023-01-13 21:13:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|