diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-10 00:41:59 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-10 00:41:59 -0400 |
commit | 7f0e8c7ef70c62814c274f110367db92f01cbb26 (patch) | |
tree | 750bcfec923a826609034ebe9185014521400c68 /src/world.h | |
parent | b53826079429939cdfbda073608cb85be8ba0738 (diff) | |
download | therapy-7f0e8c7ef70c62814c274f110367db92f01cbb26.tar.gz therapy-7f0e8c7ef70c62814c274f110367db92f01cbb26.tar.bz2 therapy-7f0e8c7ef70c62814c274f110367db92f01cbb26.zip |
C++11'd everything!
Also moved location information from physics components into entity.
Diffstat (limited to 'src/world.h')
-rw-r--r-- | src/world.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/world.h b/src/world.h deleted file mode 100644 index ad6c788..0000000 --- a/src/world.h +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
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 | ||