pandemonium_engine/modules/steering_ai/gsaigroupbehavior.h
Relintai 9fed52de03 Added a new steering_ai module.
It's a modified verion of https://github.com/GDQuest/godot-steering-ai-framework which I converted to c++ using thr converter srcipt.
It still needs to be cleaned.
2023-01-13 21:13:57 +01:00

37 lines
872 B
C++

#ifndef GSAIGROUPBEHAVIOR_H
#define GSAIGROUPBEHAVIOR_H
class GSAIGroupBehavior : public GSAISteeringBehavior {
GDCLASS(GSAIGroupBehavior, GSAISteeringBehavior);
public:
GSAIProximity get_*proximity();
void set_*proximity(const GSAIProximity &val);
Ref<FuncRef> get__callback();
void set__callback(const Ref<FuncRef> &val);
FuncRef get_callback();
bool _report_neighbor(const GSAISteeringAgent &_neighbor);
GSAIGroupBehavior();
~GSAIGroupBehavior();
protected:
static void _bind_methods();
// Base type for group-based steering behaviors.
// @category - Base types
// Container to find neighbors of the agent and calculate group behavior.
GSAIProximity *proximity;
Ref<FuncRef> _callback = funcref(self, "_report_neighbor");
// Internal callback for the behavior to define whether or not a member is
// relevant
// @tags - virtual
};
#endif