diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-02-22 19:58:29 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-02-22 19:58:29 +0000 |
commit | d3adc61aa4b4924f82d8cbc23bea26da7257da97 (patch) | |
tree | a332ee5ff920213ebfb558e646ba278885d1bdc3 /src/resources/iteminfo.h | |
parent | 3d97d69ca9b0521aa0f49db0b739d50afc00318e (diff) | |
download | mana-client-d3adc61aa4b4924f82d8cbc23bea26da7257da97.tar.gz mana-client-d3adc61aa4b4924f82d8cbc23bea26da7257da97.tar.bz2 mana-client-d3adc61aa4b4924f82d8cbc23bea26da7257da97.tar.xz mana-client-d3adc61aa4b4924f82d8cbc23bea26da7257da97.zip |
Handling gender with an enum everywhere.
Diffstat (limited to 'src/resources/iteminfo.h')
-rw-r--r-- | src/resources/iteminfo.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h index 90675a17..43047094 100644 --- a/src/resources/iteminfo.h +++ b/src/resources/iteminfo.h @@ -30,6 +30,8 @@ #include "spritedef.h" +#include "../player.h" + enum EquipmentSoundEvent { EQUIP_EVENT_STRIKE, @@ -131,10 +133,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); |