From 4d84c4ffd2c4f25a67b2f094baf6ac81c68ebb07 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Fri, 16 Mar 2012 23:20:38 +0100 Subject: Renamed Thing to Entity In preparation for using an entity/component system for the entities in the game world, this name will be more recognizable and easier to talk about. Reviewed-by: Yohann Ferreira --- src/game-server/mapcomposite.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/game-server/mapcomposite.h') diff --git a/src/game-server/mapcomposite.h b/src/game-server/mapcomposite.h index 96939a9c..079e5e48 100644 --- a/src/game-server/mapcomposite.h +++ b/src/game-server/mapcomposite.h @@ -35,7 +35,7 @@ class Map; class MapComposite; class Point; class Rectangle; -class Thing; +class Entity; struct MapContent; struct MapZone; @@ -205,9 +205,9 @@ struct MapContent MapZone &getZone(const Point &pos) const; /** - * Things (items, characters, monsters, etc) located on the map. + * Entities (items, characters, monsters, etc) located on the map. */ - std::vector< Thing * > things; + std::vector< Entity * > entities; /** * Buckets of MovingObjects located on the map, referenced by ID. @@ -270,12 +270,12 @@ class MapComposite /** * Inserts a thing on the map. Sets its public ID if relevant. */ - bool insert(Thing *); + bool insert(Entity *); /** * Removes a thing from the map. */ - void remove(Thing *); + void remove(Entity *); /** * Updates zones of every moving beings. @@ -317,7 +317,7 @@ class MapComposite /** * Gets everything related to the map. */ - const std::vector< Thing * > &getEverything() const; + const std::vector< Entity * > &getEverything() const; /** * Gets the cached value of a map-bound script variable -- cgit v1.2.3-60-g2f50