Make virtuals actually virtuals.

This commit is contained in:
Relintai 2023-01-13 23:53:46 +01:00
parent 36477a1a73
commit 65aa1c4084
3 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ public:
Ref<FuncRef> get_callback();
void set_callback(const Ref<FuncRef> &val);
bool _report_neighbor(const Ref<GSAISteeringAgent> &neighbor);
virtual bool _report_neighbor(const Ref<GSAISteeringAgent> &neighbor);
GSAIGroupBehavior();
~GSAIGroupBehavior();

View File

@ -29,7 +29,7 @@ public:
// The `calculate_steering` function is the entry point for all behaviors.
// Sets the `acceleration` with the behavior's desired amount of acceleration.
void calculate_steering(Ref<GSAITargetAcceleration> acceleration);
void _calculate_steering(Ref<GSAITargetAcceleration> acceleration);
virtual void _calculate_steering(Ref<GSAITargetAcceleration> acceleration);
GSAISteeringBehavior();
~GSAISteeringBehavior();

View File

@ -23,7 +23,7 @@ public:
void set_agents_arr(const Array &arr);
int find_neighbors(const Ref<FuncRef> &callback);
int _find_neighbors(Ref<FuncRef> callback);
virtual int _find_neighbors(Ref<FuncRef> callback);
GSAIProximity();
~GSAIProximity();