summaryrefslogtreecommitdiff
path: root/src/resources/beinginfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-29 16:19:21 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-29 16:19:21 +0300
commit7bdb50605562e47f1d6ae134881c09bd42293be5 (patch)
tree935228722e4eb48f5856abec53be1ec985a0b9d6 /src/resources/beinginfo.h
parent0f9ec2061c4ad6157c3186f1cab9c4d8558980b5 (diff)
downloadManaVerse-7bdb50605562e47f1d6ae134881c09bd42293be5.tar.gz
ManaVerse-7bdb50605562e47f1d6ae134881c09bd42293be5.tar.bz2
ManaVerse-7bdb50605562e47f1d6ae134881c09bd42293be5.tar.xz
ManaVerse-7bdb50605562e47f1d6ae134881c09bd42293be5.zip
Add strong typed int type BeingTypeId.
Diffstat (limited to 'src/resources/beinginfo.h')
-rw-r--r--src/resources/beinginfo.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h
index a30c150af..33d1472c3 100644
--- a/src/resources/beinginfo.h
+++ b/src/resources/beinginfo.h
@@ -25,7 +25,7 @@
#include "enums/being/targetcursorsize.h"
-#include "enums/simpletypes/beingid.h"
+#include "enums/simpletypes/beingtypeid.h"
#include "resources/beingmenuitem.h"
#include "resources/cursor.h"
@@ -191,10 +191,10 @@ class BeingInfo final
void setDeadSortOffsetY(const int n)
{ mDeadSortOffsetY = n; }
- BeingId getAvatarId() const A_WARN_UNUSED
+ BeingTypeId getAvatarId() const A_WARN_UNUSED
{ return mAvatarId; }
- void setAvatarId(const BeingId id)
+ void setAvatarId(const BeingTypeId id)
{ mAvatarId = id; }
int getWidth() const A_WARN_UNUSED
@@ -343,7 +343,7 @@ class BeingInfo final
int mMaxHP;
int mSortOffsetY;
int mDeadSortOffsetY;
- BeingId mAvatarId;
+ BeingTypeId mAvatarId;
int mWidth;
int mHeight;
int mStartFollowDist;
@@ -367,7 +367,7 @@ class BeingInfo final
bool mTargetSelection;
};
-typedef std::map<BeingId, BeingInfo*> BeingInfos;
+typedef std::map<BeingTypeId, BeingInfo*> BeingInfos;
typedef BeingInfos::iterator BeingInfoIterator;
#endif // RESOURCES_BEINGINFO_H