summary refs log tree commit diff stats
path: root/src/components.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2015-03-14 17:43:20 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2015-03-14 17:43:20 -0400
commit2ca593c5f09ee59a39733856cdb1f7191dc87216 (patch)
treedf7c51c2b707d1838b492f739b554230bba1c4be /src/components.h
parent25855f327a0b2b1386a3fd8c568817bb7782cac2 (diff)
downloadtherapy-2ca593c5f09ee59a39733856cdb1f7191dc87216.tar.gz
therapy-2ca593c5f09ee59a39733856cdb1f7191dc87216.tar.bz2
therapy-2ca593c5f09ee59a39733856cdb1f7191dc87216.zip
Fixed how movement while dying works
Also removed some unnecessary Message objects
Diffstat (limited to 'src/components.h')
-rw-r--r--src/components.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components.h b/src/components.h index 2ec19ff..e0c4a24 100644 --- a/src/components.h +++ b/src/components.h
@@ -12,10 +12,12 @@ class Map;
12class UserMovementComponent : public Component { 12class UserMovementComponent : public Component {
13 public: 13 public:
14 void input(Game& game, Entity& entity, int key, int action); 14 void input(Game& game, Entity& entity, int key, int action);
15 void receive(Game&, Entity&, const Message& msg);
15 16
16 private: 17 private:
17 bool holdingLeft = false; 18 bool holdingLeft = false;
18 bool holdingRight = false; 19 bool holdingRight = false;
20 bool frozen = false;
19}; 21};
20 22
21class PhysicsBodyComponent : public Component { 23class PhysicsBodyComponent : public Component {