]> git.localhorst.tv Git - blank.git/blob - src/ai/RandomWalk.hpp
tvec[234]<int> -> ivec[234]
[blank.git] / src / ai / RandomWalk.hpp
1 #ifndef BLANK_AI_RANDOMWALK_HPP_
2 #define BLANK_AI_RANDOMWALK_HPP_
3
4 #include "Controller.hpp"
5
6
7 namespace blank {
8
9 /// Randomly start or stop moving in axis directions every now and then.
10 class RandomWalk
11 : public Controller {
12
13 public:
14         explicit RandomWalk(Entity &) noexcept;
15         ~RandomWalk();
16
17         void Update(int dt) override;
18
19 private:
20         int time_left;
21
22 };
23
24 }
25
26 #endif