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/playerlistener.h | |
parent | e4abfb651d51670fcf85093b55189065c151cc14 (diff) | |
download | plus-39ab9ebf7464f77f079a8edecd3f43870245b8ee.tar.gz plus-39ab9ebf7464f77f079a8edecd3f43870245b8ee.tar.bz2 plus-39ab9ebf7464f77f079a8edecd3f43870245b8ee.tar.xz plus-39ab9ebf7464f77f079a8edecd3f43870245b8ee.zip |
Use ActorType for being type.
Diffstat (limited to 'src/listeners/playerlistener.h')
-rw-r--r-- | src/listeners/playerlistener.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 |