diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-10 19:42:04 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-10 19:42:04 -0400 |
commit | 0e0389752a0912614737e5c059b5cd4719ef9cf2 (patch) | |
tree | fc39e676bd819ee973f27fc40150a7874d2f8503 /src/entity.h | |
parent | 7f0e8c7ef70c62814c274f110367db92f01cbb26 (diff) | |
download | therapy-0e0389752a0912614737e5c059b5cd4719ef9cf2.tar.gz therapy-0e0389752a0912614737e5c059b5cd4719ef9cf2.tar.bz2 therapy-0e0389752a0912614737e5c059b5cd4719ef9cf2.zip |
Const correctness!
Also created savefile and refactored collisions a bit.
Diffstat (limited to 'src/entity.h')
-rw-r--r-- | src/entity.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/entity.h b/src/entity.h index 803a9b8..266fe11 100644 --- a/src/entity.h +++ b/src/entity.h | |||
@@ -34,7 +34,7 @@ class Message { | |||
34 | class Entity { | 34 | class Entity { |
35 | public: | 35 | public: |
36 | void addComponent(std::shared_ptr<Component> c); | 36 | void addComponent(std::shared_ptr<Component> c); |
37 | void send(Game& game, Message& msg); | 37 | void send(Game& game, const Message& msg); |
38 | void tick(Game& game); | 38 | void tick(Game& game); |
39 | void input(Game& game, int key, int action); | 39 | void input(Game& game, int key, int action); |
40 | void render(Game& game, Texture& buffer); | 40 | void render(Game& game, Texture& buffer); |
@@ -49,7 +49,7 @@ class Entity { | |||
49 | 49 | ||
50 | class Component { | 50 | class Component { |
51 | public: | 51 | public: |
52 | virtual void receive(Game&, Entity&, Message&) {} | 52 | virtual void receive(Game&, Entity&, const Message&) {} |
53 | virtual void render(Game&, Entity&, Texture&) {} | 53 | virtual void render(Game&, Entity&, Texture&) {} |
54 | virtual void tick(Game&, Entity&) {} | 54 | virtual void tick(Game&, Entity&) {} |
55 | virtual void input(Game&, Entity&, int, int) {} | 55 | virtual void input(Game&, Entity&, int, int) {} |