aboutsummaryrefslogtreecommitdiffstats
path: root/include/World.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/World.h')
-rw-r--r--include/World.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/World.h b/include/World.h
index 09e06d9..216be98 100644
--- a/include/World.h
+++ b/include/World.h
@@ -3,6 +3,8 @@
#include <common.h>
+#define MAX_ENTITIES 8
+
#define goWorldLeft(w) if(w->toLeft){w=w->toLeft;}
#define goWorldRight(w) if(w->toRight){w=w->toRight;}
@@ -13,6 +15,8 @@ private:
double start; // Where to change to dirt, going down (y)
} __attribute__ ((packed)) *line;
unsigned int lineCount;
+ unsigned int entCount;
+ void *entity[MAX_ENTITIES];
public:
World *behind,*infront;
World *toLeft,*toRight;
@@ -24,6 +28,7 @@ public:
void saveToFile(FILE *f,World *parent);
void loadFromFile(FILE *f,World *parent);
void addLayer(const float width);
+ void addEntity(void *e);
};
#endif // WORLD_H