aboutsummaryrefslogtreecommitdiffstats
path: root/include/world.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/world.h')
-rw-r--r--include/world.h7
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