From 2ca593c5f09ee59a39733856cdb1f7191dc87216 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 14 Mar 2015 17:43:20 -0400 Subject: Fixed how movement while dying works Also removed some unnecessary Message objects --- src/components.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/components.h') 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; class UserMovementComponent : public Component { public: void input(Game& game, Entity& entity, int key, int action); + void receive(Game&, Entity&, const Message& msg); private: bool holdingLeft = false; bool holdingRight = false; + bool frozen = false; }; class PhysicsBodyComponent : public Component { -- cgit 1.4.1