summaryrefslogtreecommitdiff
path: root/src/resources/beinginfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-01-31 15:36:56 +0300
committerAndrei Karas <akaras@inbox.ru>2013-01-31 21:56:05 +0300
commit3a54cf61c4ea127a16ca11c515906a5f419b97df (patch)
tree7b330747d4357c95791f578eeda0356c8649e614 /src/resources/beinginfo.h
parent741630d53aa385f192edb40ac27b00844285eac8 (diff)
downloadmanaplus-3a54cf61c4ea127a16ca11c515906a5f419b97df.tar.gz
manaplus-3a54cf61c4ea127a16ca11c515906a5f419b97df.tar.bz2
manaplus-3a54cf61c4ea127a16ca11c515906a5f419b97df.tar.xz
manaplus-3a54cf61c4ea127a16ca11c515906a5f419b97df.zip
Add default avatars support for npcs.
Diffstat (limited to 'src/resources/beinginfo.h')
-rw-r--r--src/resources/beinginfo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h
index 0e544a3b6..f1b978543 100644
--- a/src/resources/beinginfo.h
+++ b/src/resources/beinginfo.h
@@ -187,6 +187,12 @@ class BeingInfo final
void setDeadSortOffsetY(const int n)
{ mDeadSortOffsetY = n; }
+ uint16_t getAvatarId() const A_WARN_UNUSED
+ { return mAvatarId; }
+
+ void setAvatarId(const uint16_t id)
+ { mAvatarId = id; }
+
static void init();
static void clear();
@@ -207,6 +213,7 @@ class BeingInfo final
bool mTargetSelection;
int mSortOffsetY;
int mDeadSortOffsetY;
+ uint16_t mAvatarId;
};
typedef std::map<int, BeingInfo*> BeingInfos;