]> git.localhorst.tv Git - blank.git/blobdiff - src/ai/RandomWalk.hpp
another type of entity controller
[blank.git] / src / ai / RandomWalk.hpp
index 0a61974fb2281c03b65ed4e9f6c363782bf44cad..a25d4db502bedf56ca98affa5997ff89646185cf 100644 (file)
@@ -1,24 +1,22 @@
-#ifndef BLANK_APP_RANDOMWALK_HPP_
-#define BLANK_APP_RANDOMWALK_HPP_
+#ifndef BLANK_AI_RANDOMWALK_HPP_
+#define BLANK_AI_RANDOMWALK_HPP_
 
-#include <glm/glm.hpp>
+#include "Controller.hpp"
 
 
 namespace blank {
 
-class Entity;
-
 /// Randomly start or stop moving in axis directions every now and then.
-class RandomWalk {
+class RandomWalk
+: public Controller {
 
 public:
        explicit RandomWalk(Entity &) noexcept;
+       ~RandomWalk();
 
-       void Update(int dt) noexcept;
+       void Update(int dt) override;
 
 private:
-       Entity &entity;
-
        int time_left;
 
 };