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/gui/onlineplayer.h | |
parent | 273b79cf4f52c846508f3493727e34b1811ecfd5 (diff) | |
download | manaplus-45379d14d9d3c7f4673b8390cb95d98bb1759f45.tar.gz manaplus-45379d14d9d3c7f4673b8390cb95d98bb1759f45.tar.bz2 manaplus-45379d14d9d3c7f4673b8390cb95d98bb1759f45.tar.xz manaplus-45379d14d9d3c7f4673b8390cb95d98bb1759f45.zip |
Convert Gender enum into strong typed enum.
Diffstat (limited to 'src/gui/onlineplayer.h')
-rw-r--r-- | src/gui/onlineplayer.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/onlineplayer.h b/src/gui/onlineplayer.h index d0b566ffe..dbcf45be4 100644 --- a/src/gui/onlineplayer.h +++ b/src/gui/onlineplayer.h @@ -22,6 +22,8 @@ #ifndef GUI_ONLINEPLAYER_H #define GUI_ONLINEPLAYER_H +#include "enums/being/gender.h" + #include <string> #include "localconsts.h" @@ -29,8 +31,10 @@ class OnlinePlayer final { public: - OnlinePlayer(const std::string &nick, const unsigned char status, - const signed char level, const unsigned char gender, + OnlinePlayer(const std::string &nick, + const unsigned char status, + const signed char level, + const Gender gender, const signed char version) : mNick(nick), mText(""), @@ -78,7 +82,7 @@ class OnlinePlayer final signed char mVersion; - unsigned char mGender; + Gender mGender; bool mIsGM; }; |