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