summaryrefslogtreecommitdiff
path: root/src/resources/beinginfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-07-21 14:15:43 +0300
committerAndrei Karas <akaras@inbox.ru>2013-07-21 14:15:43 +0300
commite2a97fe7991d05a721be8070f70cbfbd7c169698 (patch)
tree763ddca35111acc2caccb3578645e91374df8631 /src/resources/beinginfo.h
parentb5a9c89e9d4d8b21bceda9cf2507dc7f6b726c91 (diff)
downloadmv-e2a97fe7991d05a721be8070f70cbfbd7c169698.tar.gz
mv-e2a97fe7991d05a721be8070f70cbfbd7c169698.tar.bz2
mv-e2a97fe7991d05a721be8070f70cbfbd7c169698.tar.xz
mv-e2a97fe7991d05a721be8070f70cbfbd7c169698.zip
Add settings for monster hp bar offset.
New attributes: hpBarOffsetX, hpBarOffsetY Example: <monster id="0" name="Piou" targetCursor="small" walkType="fly" hpBarOffsetX="30">
Diffstat (limited to 'src/resources/beinginfo.h')
-rw-r--r--src/resources/beinginfo.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h
index c90e3296e..5b2b7b87c 100644
--- a/src/resources/beinginfo.h
+++ b/src/resources/beinginfo.h
@@ -172,6 +172,18 @@ class BeingInfo final
int getNameOffsetY() const A_WARN_UNUSED
{ return mNameOffsetY; }
+ void setHpBarOffsetX(const int n)
+ { mHpBarOffsetX = n; }
+
+ int getHpBarOffsetX() const A_WARN_UNUSED
+ { return mHpBarOffsetX; }
+
+ void setHpBarOffsetY(const int n)
+ { mHpBarOffsetY = n; }
+
+ int getHpBarOffsetY() const A_WARN_UNUSED
+ { return mHpBarOffsetY; }
+
void setMaxHP(const int n)
{ mMaxHP = n; }
@@ -242,6 +254,8 @@ class BeingInfo final
int mTargetOffsetY;
int mNameOffsetX;
int mNameOffsetY;
+ int mHpBarOffsetX;
+ int mHpBarOffsetY;
int mMaxHP;
int mSortOffsetY;
int mDeadSortOffsetY;