mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-25 05:07:12 +01:00
31 lines
533 B
C++
31 lines
533 B
C++
#ifndef GSAI_RADIUS_PROXIMITY_H
|
|
#define GSAI_RADIUS_PROXIMITY_H
|
|
|
|
#include "core/object/func_ref.h"
|
|
#include "core/object/reference.h"
|
|
|
|
#include "gsai_proximity.h"
|
|
|
|
class SceneTree;
|
|
|
|
class GSAIRadiusProximity : public GSAIProximity {
|
|
GDCLASS(GSAIRadiusProximity, GSAIProximity);
|
|
|
|
public:
|
|
float get_radius() const;
|
|
void set_radius(const float val);
|
|
|
|
int _find_neighbors(Ref<FuncRef> callback);
|
|
|
|
GSAIRadiusProximity();
|
|
~GSAIRadiusProximity();
|
|
|
|
protected:
|
|
static void _bind_methods();
|
|
|
|
float radius;
|
|
int _last_frame;
|
|
};
|
|
|
|
#endif
|