diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-13 14:02:07 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-13 14:02:07 -0400 |
commit | bdf50ff543c73c83cc7a06426bc2a6fe66616b87 (patch) | |
tree | 6d789280fa0829ec32cc37ce73a2773d4a5cd9d1 /src/components.h | |
parent | 9cf2d327476d00b696254b170c03dd6b8548e1d0 (diff) | |
download | therapy-bdf50ff543c73c83cc7a06426bc2a6fe66616b87.tar.gz therapy-bdf50ff543c73c83cc7a06426bc2a6fe66616b87.tar.bz2 therapy-bdf50ff543c73c83cc7a06426bc2a6fe66616b87.zip |
Added a checkpoint
Diffstat (limited to 'src/components.h')
-rw-r--r-- | src/components.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/components.h b/src/components.h index c66db47..f5c66d4 100644 --- a/src/components.h +++ b/src/components.h | |||
@@ -100,4 +100,22 @@ class MapCollisionComponent : public Component { | |||
100 | const Map& map; | 100 | const Map& map; |
101 | }; | 101 | }; |
102 | 102 | ||
103 | class StaticImageComponent : public Component { | ||
104 | public: | ||
105 | StaticImageComponent(const char* filename); | ||
106 | void render(Game& game, Entity& entity, Texture& buffer); | ||
107 | |||
108 | private: | ||
109 | Texture sprite; | ||
110 | }; | ||
111 | |||
112 | class SimpleColliderComponent : public Component { | ||
113 | public: | ||
114 | SimpleColliderComponent(std::function<void (Entity& collider)> callback); | ||
115 | void receive(Game& game, Entity& entity, const Message& msg); | ||
116 | |||
117 | private: | ||
118 | std::function<void (Entity& collider)> callback; | ||
119 | }; | ||
120 | |||
103 | #endif | 121 | #endif |