diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-01 01:08:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-01 01:08:30 +0300 |
commit | 16f6f636aee6acaf52439643502f5ff9cb4ccffc (patch) | |
tree | 9f291e5257e20b0090405d4594553f38a69767ce /src/being/localplayer.h | |
parent | 3fc7fd8473e545265c705504ee0d5f2a70268282 (diff) | |
download | manaplus-16f6f636aee6acaf52439643502f5ff9cb4ccffc.tar.gz manaplus-16f6f636aee6acaf52439643502f5ff9cb4ccffc.tar.bz2 manaplus-16f6f636aee6acaf52439643502f5ff9cb4ccffc.tar.xz manaplus-16f6f636aee6acaf52439643502f5ff9cb4ccffc.zip |
Convert UserColorId enum into strong typed enum.
Diffstat (limited to 'src/being/localplayer.h')
-rw-r--r-- | src/being/localplayer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/being/localplayer.h b/src/being/localplayer.h index e5ae09ae9..2425f7502 100644 --- a/src/being/localplayer.h +++ b/src/being/localplayer.h @@ -280,7 +280,8 @@ class LocalPlayer final : public Being, void setMap(Map *const map) override final; void addMessageToQueue(const std::string &message, - const int color = UserColorId::EXP_INFO); + const UserColorIdT color + = UserColorId::EXP_INFO); /** * Called when a option (set with config.addListener()) is changed @@ -458,7 +459,7 @@ class LocalPlayer final : public Being, std::vector<int> mStatusEffectIcons; - typedef std::pair<std::string, int> MessagePair; + typedef std::pair<std::string, UserColorIdT> MessagePair; /** Queued messages*/ std::list<MessagePair> mMessages; int mMessageTime; |