mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-28 22:57:15 +01:00
Relintai
9fed52de03
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.
37 lines
872 B
C++
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
|