aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-11-09 08:05:37 -0500
committerClyne Sullivan <tullivan99@gmail.com>2015-11-09 08:05:37 -0500
commit9748d6306db7aa66128baeeca4c2a27b0efa1d87 (patch)
tree18b36403d0e622dce03a872cc21bb081e30dbecb /include
parentd54da1ea2b315a2ada023d189c31571949d25d06 (diff)
worlds have indepentdent entity arrays
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.
*/