summary refs log tree commit diff stats
path: root/src/systems/controlling.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2018-02-18 15:25:52 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2018-02-18 15:25:52 -0500
commite4e2f2d2a7b6a282b9618aa0004d9453936f43c6 (patch)
treede1653dc8b5992420147f28d9fb4de052ea1845f /src/systems/controlling.h
parente16fb5be90c889c371cbb0ca2444735c2e12073c (diff)
downloadtherapy-e4e2f2d2a7b6a282b9618aa0004d9453936f43c6.tar.gz
therapy-e4e2f2d2a7b6a282b9618aa0004d9453936f43c6.tar.bz2
therapy-e4e2f2d2a7b6a282b9618aa0004d9453936f43c6.zip
Added player death and event scheduling
Also added ability to make sprites flicker, to freeze physics for an entity, and to freeze progression of a sprite's animation loop.
Diffstat (limited to 'src/systems/controlling.h')
-rw-r--r--src/systems/controlling.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/systems/controlling.h b/src/systems/controlling.h index 01ed7a0..d6f0789 100644 --- a/src/systems/controlling.h +++ b/src/systems/controlling.h
@@ -12,8 +12,13 @@ public:
12 } 12 }
13 13
14 void tick(double dt); 14 void tick(double dt);
15
15 void input(int key, int action); 16 void input(int key, int action);
16 17
18 void freeze(id_type entity);
19
20 void unfreeze(id_type entity);
21
17private: 22private:
18 23
19 std::queue<std::pair<int,int>> actions_; 24 std::queue<std::pair<int,int>> actions_;