diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-21 21:52:28 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-21 21:52:28 -0400 |
commit | b3e625cf2e6fea860fc669f3a2a46cf96a01da0f (patch) | |
tree | bc01dccc2e7f148b3c291eb4e145c9263aeaa20d /include/world.h | |
parent | 1118f22a60dffeb204ec4845d009cf057b51f088 (diff) |
added/fixed world linking
Diffstat (limited to 'include/world.h')
-rw-r--r-- | include/world.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/world.h b/include/world.h index 3b76f19..c89ced7 100644 --- a/include/world.h +++ b/include/world.h @@ -13,11 +13,18 @@ private: int x_start; World *behind,*infront; public: + World *toLeft,*toRight; World(unsigned int width); ~World(void); + void addLayer(unsigned int width); void draw(vec2 *vec); void detect(vec2 *v,vec2 *vel,const float width); + + World *goWorldLeft(vec2 *loc,const float width); + World *goWorldRight(vec2 *loc,const float width); + World *goWorldBack(vec2 *loc,const float width); + World *goWorldFront(vec2 *loc,const float width); }; #endif // WORLD_H |