summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-02-22 19:58:29 +0000
committerIra Rice <irarice@gmail.com>2009-01-05 20:36:46 -0700
commitb6e7b6c6cb3ea26157e3a78713cc9621dc46b2d7 (patch)
tree67c3d0552af5661b3847ef7e397771bc101e0c7c /src/resources/iteminfo.h
parent77db175ceabe8d05665191835d0250a927d93d32 (diff)
downloadmana-b6e7b6c6cb3ea26157e3a78713cc9621dc46b2d7.tar.gz
mana-b6e7b6c6cb3ea26157e3a78713cc9621dc46b2d7.tar.bz2
mana-b6e7b6c6cb3ea26157e3a78713cc9621dc46b2d7.tar.xz
mana-b6e7b6c6cb3ea26157e3a78713cc9621dc46b2d7.zip
Handling gender with an enum everywhere.
(cherry picked from mainline commit d3adc61aa4b4924f82d8cbc23bea26da7257da97) Conflicts: src/net/beinghandler.cpp src/net/charserverhandler.cpp src/player.cpp src/player.h
Diffstat (limited to 'src/resources/iteminfo.h')
-rw-r--r--src/resources/iteminfo.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h
index 4678bc08..b7729d2c 100644
--- a/src/resources/iteminfo.h
+++ b/src/resources/iteminfo.h
@@ -28,6 +28,8 @@
#include "spritedef.h"
+#include "../being.h"
+
enum EquipmentSoundEvent
{
EQUIP_EVENT_STRIKE,
@@ -91,10 +93,10 @@ class ItemInfo
void setView(int view)
{ mView = view; }
- void setSprite(const std::string &animationFile, int gender)
+ void setSprite(const std::string &animationFile, Gender gender)
{ mAnimationFiles[gender] = animationFile; }
- const std::string& getSprite(int gender) const;
+ const std::string& getSprite(Gender gender) const;
void setWeaponType(int);