summaryrefslogtreecommitdiff
path: root/src/object.h
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2006-01-08 22:52:59 +0000
committerYohann Ferreira <bertram@cegetel.net>2006-01-08 22:52:59 +0000
commitf7db7a051da79d8deef8b79419ce6772dce16725 (patch)
tree27ff5c5f33ea73d4e52e32ebbc583fa92ba50c87 /src/object.h
parentac150f3543caf86fd071c73f53373b4ea243fa24 (diff)
downloadmanaserv-f7db7a051da79d8deef8b79419ce6772dce16725.tar.gz
manaserv-f7db7a051da79d8deef8b79419ce6772dce16725.tar.bz2
manaserv-f7db7a051da79d8deef8b79419ce6772dce16725.tar.xz
manaserv-f7db7a051da79d8deef8b79419ce6772dce16725.zip
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.
Diffstat (limited to 'src/object.h')
-rw-r--r--src/object.h8
1 files changed, 4 insertions, 4 deletions
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 */
};