summary refs log tree commit diff stats
path: root/src/components/user_movement.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/user_movement.h')
-rw-r--r--src/components/user_movement.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/components/user_movement.h b/src/components/user_movement.h new file mode 100644 index 0000000..1bcf05e --- /dev/null +++ b/src/components/user_movement.h
@@ -0,0 +1,19 @@
1#ifndef USER_MOVEMENT_H
2#define USER_MOVEMENT_H
3
4#include "entity.h"
5
6class Game;
7
8class UserMovementComponent : public Component {
9 public:
10 void input(Game& game, Entity& entity, int key, int action);
11 void receive(Game&, Entity&, const Message& msg);
12
13 private:
14 bool holdingLeft = false;
15 bool holdingRight = false;
16 bool frozen = false;
17};
18
19#endif