diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-14 17:43:20 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-14 17:43:20 -0400 |
commit | 2ca593c5f09ee59a39733856cdb1f7191dc87216 (patch) | |
tree | df7c51c2b707d1838b492f739b554230bba1c4be /src/components.h | |
parent | 25855f327a0b2b1386a3fd8c568817bb7782cac2 (diff) | |
download | therapy-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.h | 2 |
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; | |||
12 | class UserMovementComponent : public Component { | 12 | class 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 | ||
21 | class PhysicsBodyComponent : public Component { | 23 | class PhysicsBodyComponent : public Component { |