X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fai%2FChaser.hpp;h=43667c06d332686471f3036be79ce003dc1a017d;hb=04531ab5fc3d82ba5b5d456bcc277fe6499e1150;hp=6daaf3639934fe5d70e5609767d9d0530133eceb;hpb=c52405fad9c070e1370f852234c6eb723b52916c;p=blank.git diff --git a/src/ai/Chaser.hpp b/src/ai/Chaser.hpp index 6daaf36..43667c0 100644 --- a/src/ai/Chaser.hpp +++ b/src/ai/Chaser.hpp @@ -6,11 +6,13 @@ namespace blank { +class World; + class Chaser : public Controller { public: - Chaser(Entity &ctrl, Entity &tgt) noexcept; + Chaser(World &, Entity &ctrl, Entity &tgt) noexcept; ~Chaser(); Entity &Target() noexcept { return tgt; } @@ -19,8 +21,10 @@ public: void Update(int dt) override; private: + World &world; Entity &tgt; - float speed; + float chase_speed; + float flee_speed; float stop_dist; float flee_dist;