From f7db7a051da79d8deef8b79419ce6772dce16725 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Sun, 8 Jan 2006 22:52:59 +0000 Subject: Added customization of created character. (That makes previously created db invalid.) Made list of map indexed by map id, instead of map name. This will prevent unsyncing of player's current map when changing a map name. Remember you have now to add a map filename into db before being able to load it. (Default map id is 1, not ZERO, as zero is the not found return value. --- src/object.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/object.h') diff --git a/src/object.h b/src/object.h index a00b81ec..26edf884 100644 --- a/src/object.h +++ b/src/object.h @@ -158,14 +158,14 @@ class Object * * @return Name of map being is located. */ - const std::string & - getMap(); + const unsigned int + getMapId(); /** * Set map being is located */ void - setMap(const std::string &map); + setMap(const unsigned int mapId); protected: Statistics mStats; /**< stats modifiers or computed stats */ @@ -176,7 +176,7 @@ class Object unsigned int mX; /**< x coordinate */ unsigned int mY; /**< y coordinate */ - std::string mMap; /**< name of the map being is on */ + unsigned int mMapId; /**< id of the map being is on */ }; -- cgit v1.2.3-60-g2f50