summary refs log tree commit diff stats
path: root/src/components.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2015-03-14 16:13:11 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2015-03-14 16:13:11 -0400
commit44324ba5d6cac01048cc5cbecbff255ee56f2fc0 (patch)
tree63e859067d214bfccf1d75520e1cedece0e91963 /src/components.h
parent5990e7802c84b3f407de3934a1d75721115d1da7 (diff)
downloadtherapy-44324ba5d6cac01048cc5cbecbff255ee56f2fc0.tar.gz
therapy-44324ba5d6cac01048cc5cbecbff255ee56f2fc0.tar.bz2
therapy-44324ba5d6cac01048cc5cbecbff255ee56f2fc0.zip
Wrote simple factory to read map and entity data from XML files
Diffstat (limited to 'src/components.h')
-rw-r--r--src/components.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components.h b/src/components.h index f5c66d4..3d80d1a 100644 --- a/src/components.h +++ b/src/components.h
@@ -111,11 +111,11 @@ class StaticImageComponent : public Component {
111 111
112class SimpleColliderComponent : public Component { 112class SimpleColliderComponent : public Component {
113 public: 113 public:
114 SimpleColliderComponent(std::function<void (Entity& collider)> callback); 114 SimpleColliderComponent(std::function<void (Game& game, Entity& collider)> callback);
115 void receive(Game& game, Entity& entity, const Message& msg); 115 void receive(Game& game, Entity& entity, const Message& msg);
116 116
117 private: 117 private:
118 std::function<void (Entity& collider)> callback; 118 std::function<void (Game& game, Entity& collider)> callback;
119}; 119};
120 120
121#endif 121#endif