summaryrefslogtreecommitdiff
path: root/src/being/localplayer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-01 01:08:30 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-01 01:08:30 +0300
commit16f6f636aee6acaf52439643502f5ff9cb4ccffc (patch)
tree9f291e5257e20b0090405d4594553f38a69767ce /src/being/localplayer.h
parent3fc7fd8473e545265c705504ee0d5f2a70268282 (diff)
downloadplus-16f6f636aee6acaf52439643502f5ff9cb4ccffc.tar.gz
plus-16f6f636aee6acaf52439643502f5ff9cb4ccffc.tar.bz2
plus-16f6f636aee6acaf52439643502f5ff9cb4ccffc.tar.xz
plus-16f6f636aee6acaf52439643502f5ff9cb4ccffc.zip
Convert UserColorId enum into strong typed enum.
Diffstat (limited to 'src/being/localplayer.h')
-rw-r--r--src/being/localplayer.h5
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;