diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-29 23:49:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-29 23:49:29 +0300 |
commit | 45379d14d9d3c7f4673b8390cb95d98bb1759f45 (patch) | |
tree | 698fe787014ca277f5b23144136d4e5417c6b444 /src/being/being.cpp | |
parent | 273b79cf4f52c846508f3493727e34b1811ecfd5 (diff) | |
download | manaverse-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.cpp')
-rw-r--r-- | src/being/being.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index 7c250aac3..f433ec964 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -2452,7 +2452,7 @@ BeingCacheEntry* Being::getCacheEntry(const BeingId id) } -void Being::setGender(const Gender::Type gender) +void Being::setGender(const GenderT gender) { if (gender != mGender) { @@ -3239,7 +3239,7 @@ void Being::updatePercentHP() BLOCK_END("Being::updatePercentHP") } -uint8_t Being::genderToInt(const Gender::Type sex) +uint8_t Being::genderToInt(const GenderT sex) { switch (sex) { @@ -3254,7 +3254,7 @@ uint8_t Being::genderToInt(const Gender::Type sex) } } -Gender::Type Being::intToGender(const uint8_t sex) +GenderT Being::intToGender(const uint8_t sex) { switch (sex) { |