diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-14 16:13:11 -0400 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-14 16:13:11 -0400 |
| commit | 44324ba5d6cac01048cc5cbecbff255ee56f2fc0 (patch) | |
| tree | 63e859067d214bfccf1d75520e1cedece0e91963 /src/components.h | |
| parent | 5990e7802c84b3f407de3934a1d75721115d1da7 (diff) | |
| download | therapy-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.h | 4 |
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 | ||
| 112 | class SimpleColliderComponent : public Component { | 112 | class 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 |
