diff options
Diffstat (limited to 'src/systems/controlling.h')
| -rw-r--r-- | src/systems/controlling.h | 22 |
1 files changed, 22 insertions, 0 deletions
| diff --git a/src/systems/controlling.h b/src/systems/controlling.h new file mode 100644 index 0000000..01ed7a0 --- /dev/null +++ b/src/systems/controlling.h | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | #ifndef CONTROLLING_H_80B1BB8D | ||
| 2 | #define CONTROLLING_H_80B1BB8D | ||
| 3 | |||
| 4 | #include "system.h" | ||
| 5 | #include <queue> | ||
| 6 | |||
| 7 | class ControllingSystem : public System { | ||
| 8 | public: | ||
| 9 | |||
| 10 | ControllingSystem(Game& game) : System(game) | ||
| 11 | { | ||
| 12 | } | ||
| 13 | |||
| 14 | void tick(double dt); | ||
| 15 | void input(int key, int action); | ||
| 16 | |||
| 17 | private: | ||
| 18 | |||
| 19 | std::queue<std::pair<int,int>> actions_; | ||
| 20 | }; | ||
| 21 | |||
| 22 | #endif /* end of include guard: CONTROLLING_H_80B1BB8D */ | ||
