From 9748d6306db7aa66128baeeca4c2a27b0efa1d87 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Mon, 9 Nov 2015 08:05:37 -0500 Subject: worlds have indepentdent entity arrays --- include/world.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include') diff --git a/include/world.h b/include/world.h index e3c7f15..754f3c7 100644 --- a/include/world.h +++ b/include/world.h @@ -67,6 +67,21 @@ public: *behind, *infront; + /* + * Entity arrays. + */ + + std::vector npc; + std::vector build; + std::vector mob; + std::vector 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. */ -- cgit v1.2.3