summary refs log tree commit diff stats
path: root/src/entity.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/entity.h')
-rw-r--r--src/entity.h4
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 {
34class Entity { 34class 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
50class Component { 50class 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) {}