summaryrefslogtreecommitdiff
path: root/src/avatar.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-29 14:30:20 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-29 14:30:20 +0300
commit0f9ec2061c4ad6157c3186f1cab9c4d8558980b5 (patch)
tree6259593b8436178ad8d981a96a8fd71eab9e04cc /src/avatar.h
parent01773c71a4698c6f01fe70d864f922bda65506cb (diff)
downloadmanaplus-0f9ec2061c4ad6157c3186f1cab9c4d8558980b5.tar.gz
manaplus-0f9ec2061c4ad6157c3186f1cab9c4d8558980b5.tar.bz2
manaplus-0f9ec2061c4ad6157c3186f1cab9c4d8558980b5.tar.xz
manaplus-0f9ec2061c4ad6157c3186f1cab9c4d8558980b5.zip
Add strong typed int type BeingId.
Diffstat (limited to 'src/avatar.h')
-rw-r--r--src/avatar.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/avatar.h b/src/avatar.h
index a8e690b29..f079e367f 100644
--- a/src/avatar.h
+++ b/src/avatar.h
@@ -25,6 +25,8 @@
#include "enums/being/gender.h"
+#include "enums/simpletypes/beingid.h"
+
#include <string>
#include "localconsts.h"
@@ -144,10 +146,10 @@ class Avatar notfinal
void setExp(const int n)
{ mExp = n; }
- int getID() const A_WARN_UNUSED
+ BeingId getID() const A_WARN_UNUSED
{ return mId; }
- void setID(const int id)
+ void setID(const BeingId id)
{ mId = id; }
int getCharId() const A_WARN_UNUSED
@@ -181,7 +183,7 @@ class Avatar notfinal
{ mPoison = b; }
protected:
- int mId;
+ BeingId mId;
int mCharId;
std::string mName;
std::string mOriginalName;