summaryrefslogtreecommitdiff
path: root/src/resources/beinginfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-16 23:26:43 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-17 01:10:09 +0300
commit46dd47b2652d0928bc414b12685a89effe41e9ef (patch)
tree3bacd592cf08ff3eab1a3fae41688e8f4410047f /src/resources/beinginfo.h
parent5a3724fea17bb1d1059207eb6c1d1e18dac20aa3 (diff)
downloadmv-46dd47b2652d0928bc414b12685a89effe41e9ef.tar.gz
mv-46dd47b2652d0928bc414b12685a89effe41e9ef.tar.bz2
mv-46dd47b2652d0928bc414b12685a89effe41e9ef.tar.xz
mv-46dd47b2652d0928bc414b12685a89effe41e9ef.zip
improve npcdialog class.
allow set avatar size in avatars.xml.
Diffstat (limited to 'src/resources/beinginfo.h')
-rw-r--r--src/resources/beinginfo.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h
index 9bf5417fa..36c78f53b 100644
--- a/src/resources/beinginfo.h
+++ b/src/resources/beinginfo.h
@@ -195,6 +195,18 @@ class BeingInfo final
void setAvatarId(const uint16_t id)
{ mAvatarId = id; }
+ int getWidth() const
+ { return mWidth; }
+
+ int getHeight() const
+ { return mHeight; }
+
+ void setWidth(const int n)
+ { mWidth = n; }
+
+ void setHeight(const int n)
+ { mHeight = n; }
+
static void init();
static void clear();
@@ -211,11 +223,13 @@ class BeingInfo final
int mTargetOffsetX;
int mTargetOffsetY;
int mMaxHP;
- bool mStaticMaxHP;
- bool mTargetSelection;
int mSortOffsetY;
int mDeadSortOffsetY;
uint16_t mAvatarId;
+ int mWidth;
+ int mHeight;
+ bool mStaticMaxHP;
+ bool mTargetSelection;
};
typedef std::map<int, BeingInfo*> BeingInfos;