From 40e0c5d15ee6cd24bdc305e40ae6895aca18e669 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Fri, 1 Jul 2016 10:34:55 -0400 Subject: removed mob,build,npc vectors --- include/world.hpp | 48 ++++++------------------------------------------ 1 file changed, 6 insertions(+), 42 deletions(-) (limited to 'include') diff --git a/include/world.hpp b/include/world.hpp index 9a892d8..ffbc673 100644 --- a/include/world.hpp +++ b/include/world.hpp @@ -236,22 +236,6 @@ protected: */ std::vector light; - /** - * A vector of all mobs in the world. - * - * @see addMob() - * @see getLastMob() - * @see getNearMob() - */ - std::vector mob; - - /** - * A vector of all objects in the world. - * - * @see addObject() - */ - std::vector object; - /** * A vector of all particles in the world. * @@ -259,14 +243,6 @@ protected: */ CoolArray particles; - /** - * A vector of all structures in the world. - * - * @see addStructure() - * @see getStructurePos() - */ - std::vector build; - /** * A vector of all villages in the world. * @@ -274,6 +250,8 @@ protected: */ std::vector village; + std::vector entityPending; + /** * Handles death, gravity, etc. for a single entity */ @@ -301,20 +279,6 @@ public: */ std::vector entity; - /** - * A vector of all NPCs in the world. - * - * @see addNPC() - */ - std::vector npc; - - /** - * A vector of all merchants in the world. - * - * @see addMerchant() - */ - std::vector merchant; - /** * Constructs the world, resets variables. */ @@ -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. -- cgit v1.2.3