feat: implemented enemy wretched patrol and chase states
This commit is contained in:
parent
1b0e4384b9
commit
9517588415
12 changed files with 224 additions and 17 deletions
|
|
@ -9,6 +9,7 @@ class PatrolPath;
|
|||
class NpcUnit : public Node {
|
||||
GDCLASS(NpcUnit, Node);
|
||||
static void _bind_methods();
|
||||
void on_npc_awareness_changed(bool seen);
|
||||
void child_added(Node *node);
|
||||
void enter_tree();
|
||||
|
||||
|
|
@ -23,6 +24,7 @@ public:
|
|||
float get_patrol_speed() const;
|
||||
|
||||
private:
|
||||
bool aware_of_player{ false };
|
||||
Vector<EnemyBody *> npcs{};
|
||||
PatrolPath *patrol_path{ nullptr };
|
||||
float patrol_speed{ 3.f };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue