aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/world.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/world.h b/include/world.h
index e3c7f15..754f3c7 100644
--- a/include/world.h
+++ b/include/world.h
@@ -68,6 +68,21 @@ public:
*infront;
/*
+ * Entity arrays.
+ */
+
+ std::vector<NPC *> npc;
+ std::vector<Structures *> build;
+ std::vector<Mob *> mob;
+ std::vector<Entity *> entity;
+
+ void addStructure(_TYPE t,float x,float y);
+ void addMob(int t,float x,float y);
+ void addNPC(float x,float y);
+
+ void update(Player *p,unsigned int delta);
+
+ /*
* Constructor and deconstructor, these do what you would expect.
*/