aboutsummaryrefslogtreecommitdiffstats
path: root/include/World.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/World.h')
-rw-r--r--include/World.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/World.h b/include/World.h
index 08ecabb..91eb81e 100644
--- a/include/World.h
+++ b/include/World.h
@@ -6,6 +6,8 @@
#define goWorldLeft(w) if(w->toLeft){w=w->toLeft;}
#define goWorldRight(w) if(w->toRight){w=w->toRight;}
+#define LAYER_SCALE 1
+
class World {
private:
struct line_t {
@@ -13,7 +15,9 @@ private:
double start; // Where to change to dirt, going down (y)
} __attribute__ ((packed)) *line;
unsigned int lineCount;
+ bool root;
public:
+ World *behind,*infront;
World *toLeft,*toRight;
World(void);
World(const float width,World *l,World *r);
@@ -22,6 +26,8 @@ public:
float getWidth(void);
void saveToFile(FILE *f,World *parent);
void loadFromFile(FILE *f,World *parent);
+ void addLayer(void);
+ void setRoot(void);
};
#endif // WORLD_H