From 39ab9ebf7464f77f079a8edecd3f43870245b8ee Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 17 Apr 2015 20:24:14 +0300 Subject: Use ActorType for being type. --- src/listeners/playerlistener.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/listeners/playerlistener.h') 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 -- cgit v1.2.3-60-g2f50