diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-10-07 08:39:53 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-10-07 08:39:53 -0400 |
commit | f28fda996331de5dac8fc2f20ea0898527239fe5 (patch) | |
tree | 1d367355654cd0cd24978601b6c1d7493b029145 /include/world.h | |
parent | 47be4d4887cd5c53ea9c019ac77b79dc4ed01c6a (diff) |
world improvement
Diffstat (limited to 'include/world.h')
-rw-r--r-- | include/world.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/world.h b/include/world.h index 7095c3b..1f8b7e1 100644 --- a/include/world.h +++ b/include/world.h @@ -24,7 +24,8 @@ protected: * */ struct line_t { - float y,gh; + bool gs; + float y,gh[2]; unsigned char color; } __attribute__ ((packed)) *line; unsigned int lineCount; // Size of the array 'line' (aka the width of the world) @@ -45,7 +46,7 @@ public: void addLayer(unsigned int width); // Generates a new world and makes 'behind' point to it. If 'behind' // already points to a world, the new world will be set to be behind 'behind'. - virtual void draw(vec2 *vec); // Draws the world around the coordinates 'vec' + virtual void draw(Player *p); // Draws the world around the coordinates 'vec' void detect(Player *p); // Insures objects/entities stored in an Entity class stay outside of the @@ -78,7 +79,7 @@ public: ~IndoorWorld(void); void generate(unsigned int width); // Generates a flat world of width 'width' - void draw(vec2 *vec); // Draws the world (ignores layers) + void draw(Player *p); // Draws the world (ignores layers) }; #endif // WORLD_H |