diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-07-01 10:34:55 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-07-01 10:34:55 -0400 |
commit | 40e0c5d15ee6cd24bdc305e40ae6895aca18e669 (patch) | |
tree | 43e615bec6d86dba5f01e3133d5f412f3baf35cd /include | |
parent | f620d82757becbb2270a37921fc989cb777f8824 (diff) |
removed mob,build,npc vectors
Diffstat (limited to 'include')
-rw-r--r-- | include/world.hpp | 48 |
1 files changed, 6 insertions, 42 deletions
diff --git a/include/world.hpp b/include/world.hpp index 9a892d8..ffbc673 100644 --- a/include/world.hpp +++ b/include/world.hpp @@ -237,22 +237,6 @@ protected: std::vector<Light> light; /** - * A vector of all mobs in the world. - * - * @see addMob() - * @see getLastMob() - * @see getNearMob() - */ - std::vector<Mob *> mob; - - /** - * A vector of all objects in the world. - * - * @see addObject() - */ - std::vector<Object> object; - - /** * A vector of all particles in the world. * * @see addParticle() @@ -260,20 +244,14 @@ protected: CoolArray<Particles> particles; /** - * A vector of all structures in the world. - * - * @see addStructure() - * @see getStructurePos() - */ - std::vector<Structures *> build; - - /** * A vector of all villages in the world. * * @see addVillage() */ std::vector<Village> village; + std::vector<Entity *> entityPending; + /** * Handles death, gravity, etc. for a single entity */ @@ -302,20 +280,6 @@ public: std::vector<Entity *> entity; /** - * A vector of all NPCs in the world. - * - * @see addNPC() - */ - std::vector<NPC *> npc; - - /** - * A vector of all merchants in the world. - * - * @see addMerchant() - */ - std::vector<Merchant *> merchant; - - /** * Constructs the world, resets variables. */ World(void); @@ -369,24 +333,24 @@ public: * This is used to update properties of the light outside of the * world class. */ - Light *getLastLight(void); + Light& getLastLight(void); /** * Gets a pointer ot the most recently created mob. * This is used to update properties of the mob outside of the * world class. */ - Mob *getLastMob(void); + Mob* getLastMob(void); /** * Finds the entity nearest to the provided one. */ - Entity *getNearInteractable(Entity &e); + Entity* getNearInteractable(Entity &e); /** * Finds the mob nearest to the given entity. */ - Mob *getNearMob(Entity &e); + Mob* getNearMob(Entity &e); /** * Gets the coordinates of the `index`th structure. |