summaryrefslogtreecommitdiff
path: root/src/being/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-29 23:49:29 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-29 23:49:29 +0300
commit45379d14d9d3c7f4673b8390cb95d98bb1759f45 (patch)
tree698fe787014ca277f5b23144136d4e5417c6b444 /src/being/being.h
parent273b79cf4f52c846508f3493727e34b1811ecfd5 (diff)
downloadmanaverse-45379d14d9d3c7f4673b8390cb95d98bb1759f45.tar.gz
manaverse-45379d14d9d3c7f4673b8390cb95d98bb1759f45.tar.bz2
manaverse-45379d14d9d3c7f4673b8390cb95d98bb1759f45.tar.xz
manaverse-45379d14d9d3c7f4673b8390cb95d98bb1759f45.zip
Convert Gender enum into strong typed enum.
Diffstat (limited to 'src/being/being.h')
-rw-r--r--src/being/being.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/being/being.h b/src/being/being.h
index d21ad8acc..63b531ff3 100644
--- a/src/being/being.h
+++ b/src/being/being.h
@@ -580,9 +580,9 @@ class Being notfinal : public ActorSprite,
/**
* Sets the gender of this being.
*/
- virtual void setGender(const Gender::Type gender);
+ virtual void setGender(const GenderT gender);
- Gender::Type getGender() const A_WARN_UNUSED
+ GenderT getGender() const A_WARN_UNUSED
{ return mGender; }
/**
@@ -848,9 +848,9 @@ class Being notfinal : public ActorSprite,
void setLook(const uint16_t look);
- static uint8_t genderToInt(const Gender::Type sex) A_WARN_UNUSED;
+ static uint8_t genderToInt(const GenderT sex) A_WARN_UNUSED;
- static Gender::Type intToGender(const uint8_t sex) A_WARN_UNUSED;
+ static GenderT intToGender(const uint8_t sex) A_WARN_UNUSED;
NextSoundInfo mNextSound;
@@ -995,7 +995,7 @@ class Being notfinal : public ActorSprite,
int mPreStandTime;
- Gender::Type mGender;
+ GenderT mGender;
BeingActionT mAction;
BeingTypeId mSubType; /**< Subtype (graphical view, basically) */
uint8_t mDirection; /**< Facing direction */