diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-17 20:24:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-17 20:24:14 +0300 |
commit | 39ab9ebf7464f77f079a8edecd3f43870245b8ee (patch) | |
tree | 73025204bf897590c802bbfb7f729f7e8595d30b /src/listeners | |
parent | e4abfb651d51670fcf85093b55189065c151cc14 (diff) | |
download | mv-39ab9ebf7464f77f079a8edecd3f43870245b8ee.tar.gz mv-39ab9ebf7464f77f079a8edecd3f43870245b8ee.tar.bz2 mv-39ab9ebf7464f77f079a8edecd3f43870245b8ee.tar.xz mv-39ab9ebf7464f77f079a8edecd3f43870245b8ee.zip |
Use ActorType for being type.
Diffstat (limited to 'src/listeners')
-rw-r--r-- | src/listeners/playerlistener.cpp | 2 | ||||
-rw-r--r-- | src/listeners/playerlistener.h | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/listeners/playerlistener.cpp b/src/listeners/playerlistener.cpp index d07f73515..ae0f3aca7 100644 --- a/src/listeners/playerlistener.cpp +++ b/src/listeners/playerlistener.cpp @@ -32,7 +32,7 @@ PlayerListener::PlayerListener() : ActionListener(), mNick(), mDialog(nullptr), - mType(static_cast<int>(ActorType::Unknown)) + mType(ActorType::Unknown) { } diff --git a/src/listeners/playerlistener.h b/src/listeners/playerlistener.h index 3364f44f5..52527fafc 100644 --- a/src/listeners/playerlistener.h +++ b/src/listeners/playerlistener.h @@ -21,6 +21,8 @@ #ifndef LISTENERS_PLAYERLISTENER_H #define LISTENERS_PLAYERLISTENER_H +#include "enums/being/actortype.h" + #include "listeners/actionlistener.h" #include "localconsts.h" @@ -42,13 +44,13 @@ class PlayerListener final : public ActionListener void setDialog(TextDialog *const dialog) { mDialog = dialog; } - void setType(const int type) + void setType(const ActorType::Type type) { mType = type; } private: std::string mNick; TextDialog *mDialog; - int mType; + ActorType::Type mType; }; #endif // LISTENERS_PLAYERLISTENER_H |