summaryrefslogtreecommitdiff
path: root/src/game-server/item.hpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-02-21 17:59:40 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-02-21 17:59:40 +0000
commit12c9a7508dfa863087035f6dc2f73866789927f1 (patch)
tree749b96a4738fcc199c8a7c23bf890f01aefb2e06 /src/game-server/item.hpp
parentd1649dfdf5628fb49d1c2c50085cd318a87a515f (diff)
downloadmanaserv-12c9a7508dfa863087035f6dc2f73866789927f1.tar.gz
manaserv-12c9a7508dfa863087035f6dc2f73866789927f1.tar.bz2
manaserv-12c9a7508dfa863087035f6dc2f73866789927f1.tar.xz
manaserv-12c9a7508dfa863087035f6dc2f73866789927f1.zip
Moved the functions which translate strings into enumerations from the XML library into the item and monstermanager modules and reimplemented them using std::maps.
Diffstat (limited to 'src/game-server/item.hpp')
-rw-r--r--src/game-server/item.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game-server/item.hpp b/src/game-server/item.hpp
index 018cac48..7b21ad87 100644
--- a/src/game-server/item.hpp
+++ b/src/game-server/item.hpp
@@ -53,6 +53,9 @@ enum ItemType
ITEM_UNKNOWN
};
+ItemType itemTypeFromString (const std::string &name);
+
+
/**
* Enumeration of available weapon's types.
*/
@@ -71,6 +74,8 @@ enum WeaponType
WPNTYPE_THROWN
};
+WeaponType weaponTypeFromString (const std::string &name);
+
/**
* State effects to beings, and actors.
* States can be multiple for the same being.