diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-07 11:29:57 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-07 11:29:57 -0500 |
commit | b53826079429939cdfbda073608cb85be8ba0738 (patch) | |
tree | 3c40de4658f0cea01cd3938f07fe82788ef3dd01 /src/world.h | |
parent | 0751446e1d069263d25abcff49a32a380231709a (diff) | |
download | therapy-b53826079429939cdfbda073608cb85be8ba0738.tar.gz therapy-b53826079429939cdfbda073608cb85be8ba0738.tar.bz2 therapy-b53826079429939cdfbda073608cb85be8ba0738.zip |
Created entity-component system
Also tweaked the bloom flicker, tweaked the scanline texture, created a second test map, and created some currently unused sound effects.
Diffstat (limited to 'src/world.h')
-rw-r--r-- | src/world.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/world.h b/src/world.h new file mode 100644 index 0000000..ad6c788 --- /dev/null +++ b/src/world.h | |||
@@ -0,0 +1,27 @@ | |||
1 | #ifndef WORLD_H | ||
2 | #define WORLD_H | ||
3 | |||
4 | class World; | ||
5 | |||
6 | #include <list> | ||
7 | #include "renderer.h" | ||
8 | #include "entity.h" | ||
9 | #include <cstdio> | ||
10 | |||
11 | class World { | ||
12 | public: | ||
13 | World() {}; | ||
14 | ~World() {}; | ||
15 | void tick(); | ||
16 | void input(int key, int action); | ||
17 | void render(Texture* buffer); | ||
18 | void addEntity(std::shared_ptr<Entity> e); | ||
19 | |||
20 | std::list<Collidable*> bodies; | ||
21 | std::shared_ptr<Entity> player; | ||
22 | |||
23 | private: | ||
24 | std::list<std::shared_ptr<Entity>> entities; | ||
25 | }; | ||
26 | |||
27 | #endif | ||