From bdf50ff543c73c83cc7a06426bc2a6fe66616b87 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 13 Mar 2015 14:02:07 -0400 Subject: Added a checkpoint --- src/components.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/components.h') 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 { const Map& map; }; +class StaticImageComponent : public Component { + public: + StaticImageComponent(const char* filename); + void render(Game& game, Entity& entity, Texture& buffer); + + private: + Texture sprite; +}; + +class SimpleColliderComponent : public Component { + public: + SimpleColliderComponent(std::function callback); + void receive(Game& game, Entity& entity, const Message& msg); + + private: + std::function callback; +}; + #endif -- cgit 1.4.1