From 45379d14d9d3c7f4673b8390cb95d98bb1759f45 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 29 May 2015 23:49:29 +0300 Subject: Convert Gender enum into strong typed enum. --- src/being/being.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/being/being.h') 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 */ -- cgit v1.2.3-60-g2f50