summaryrefslogtreecommitdiff
path: root/src/listeners/playerlistener.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-17 20:24:14 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-17 20:24:14 +0300
commit39ab9ebf7464f77f079a8edecd3f43870245b8ee (patch)
tree73025204bf897590c802bbfb7f729f7e8595d30b /src/listeners/playerlistener.h
parente4abfb651d51670fcf85093b55189065c151cc14 (diff)
downloadplus-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.h6
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