summaryrefslogtreecommitdiffstats
path: root/src/game-server/spawnarea.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-03-16 23:20:38 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-04-04 20:18:50 +0200
commit4d84c4ffd2c4f25a67b2f094baf6ac81c68ebb07 (patch)
treecb6fc8a565689caaded7977fe249820a61dadee9 /src/game-server/spawnarea.cpp
parentb30e3355dbbd160ad77f2987b9758ad349830cac (diff)
downloadmanaserv-4d84c4ffd2c4f25a67b2f094baf6ac81c68ebb07.tar.gz
manaserv-4d84c4ffd2c4f25a67b2f094baf6ac81c68ebb07.tar.xz
manaserv-4d84c4ffd2c4f25a67b2f094baf6ac81c68ebb07.zip
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
Diffstat (limited to 'src/game-server/spawnarea.cpp')
-rw-r--r--src/game-server/spawnarea.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game-server/spawnarea.cpp b/src/game-server/spawnarea.cpp
index 43e3a93..155d4c0 100644
--- a/src/game-server/spawnarea.cpp
+++ b/src/game-server/spawnarea.cpp
@@ -31,7 +31,7 @@ struct SpawnAreaEventDispatch : EventDispatch
{
typedef EventListenerFactory< SpawnArea, &SpawnArea::mSpawnedListener >
Factory;
- removed = &Factory::create< Thing, &SpawnArea::decrease >::function;
+ removed = &Factory::create< Entity, &SpawnArea::decrease >::function;
}
};
@@ -42,7 +42,7 @@ SpawnArea::SpawnArea(MapComposite *map,
const Rectangle &zone,
int maxBeings,
int spawnRate):
- Thing(OBJECT_OTHER, map),
+ Entity(OBJECT_OTHER, map),
mSpecy(specy),
mSpawnedListener(&spawnAreaEventDispatch),
mZone(zone),
@@ -125,7 +125,7 @@ void SpawnArea::update()
}
}
-void SpawnArea::decrease(Thing *t)
+void SpawnArea::decrease(Entity *t)
{
--mNumBeings;
t->removeListener(&mSpawnedListener);