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; }
void Update(int dt) override;
private:
+ World &world;
Entity &tgt;
- float speed;
+ float chase_speed;
+ float flee_speed;
float stop_dist;
float flee_dist;