diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-03-29 08:48:52 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-03-29 08:48:52 -0400 |
commit | a9a9777190086bd2ce2aa54e20a1101509614463 (patch) | |
tree | dfd754e45f2d8fc4cf955470681c39c502cde1b4 /include/world.h | |
parent | 82c178d797b9a23c31d7dad1cc8cac29d27c6eb1 (diff) |
began reworking indoors
Diffstat (limited to 'include/world.h')
-rw-r--r-- | include/world.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/world.h b/include/world.h index 0b87134..f730715 100644 --- a/include/world.h +++ b/include/world.h @@ -165,7 +165,7 @@ protected: * World::detect(), which is why it is declared private. */ - void singleDetect( Entity *e ); + virtual void singleDetect( Entity *e ); /** * Empties all entity vectors. @@ -386,7 +386,7 @@ public: * half-width to positive half-width. */ - virtual void generate(unsigned int width); + void generate(unsigned int width); /** * Sets the background theme, collecting the required textures into a @@ -482,11 +482,18 @@ public: */ class IndoorWorld : public World { +private: + + std::vector<std::vector<float>> floor; + + void singleDetect( Entity *e ); + public: IndoorWorld(void); ~IndoorWorld(void); - void generate(unsigned int width); // Generates a flat world of width 'width' + void addFloor( unsigned int width ); + void draw(Player *p); // Draws the world (ignores layers) }; |