diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-10-18 00:13:34 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-10-19 22:32:28 +0200 |
commit | c8f2916bdc60f7c5b632655cfe9bddaad3a15bc0 (patch) | |
tree | a3a867fae425ca3e53d166748f315a22d6eda28d /src/game-server/map.h | |
parent | 210e33c8b32f3bbc696e5ffd1affef65a7d66b5d (diff) | |
download | manaserv-c8f2916bdc60f7c5b632655cfe9bddaad3a15bc0.tar.gz manaserv-c8f2916bdc60f7c5b632655cfe9bddaad3a15bc0.tar.bz2 manaserv-c8f2916bdc60f7c5b632655cfe9bddaad3a15bc0.tar.xz manaserv-c8f2916bdc60f7c5b632655cfe9bddaad3a15bc0.zip |
Took interpreting the objects out of the map reader
The map reader is now only concerned with parsing the XML, whereas the
MapComposite turns some of the objects into Warps, Spawns and NPCs.
Reviewed-by: Yohann Ferreira
Diffstat (limited to 'src/game-server/map.h')
-rw-r--r-- | src/game-server/map.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game-server/map.h b/src/game-server/map.h index f1180a77..eca36863 100644 --- a/src/game-server/map.h +++ b/src/game-server/map.h @@ -92,6 +92,9 @@ class MapObject const Rectangle &getBounds() const { return mBounds; } + int getX() const { return mBounds.x; } + int getY() const { return mBounds.y; } + private: Rectangle mBounds; std::string mName; |