aboutsummaryrefslogtreecommitdiffstats
path: root/include/world.h
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-09-21 21:52:28 -0400
committerClyne Sullivan <tullivan99@gmail.com>2015-09-21 21:52:28 -0400
commitb3e625cf2e6fea860fc669f3a2a46cf96a01da0f (patch)
treebc01dccc2e7f148b3c291eb4e145c9263aeaa20d /include/world.h
parent1118f22a60dffeb204ec4845d009cf057b51f088 (diff)
added/fixed world linking
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