summaryrefslogtreecommitdiff
path: root/src/resources/beinginfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-23 14:53:21 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-23 14:53:21 +0300
commit88df3eb6e82e1a23f379416652ac4f12f22a063c (patch)
tree130c1abe6ae6c4461910b244f6c322ede5f41466 /src/resources/beinginfo.h
parent48f2996ccc789d740edc4b425a3e00f378a9095a (diff)
downloadmv-88df3eb6e82e1a23f379416652ac4f12f22a063c.tar.gz
mv-88df3eb6e82e1a23f379416652ac4f12f22a063c.tar.bz2
mv-88df3eb6e82e1a23f379416652ac4f12f22a063c.tar.xz
mv-88df3eb6e82e1a23f379416652ac4f12f22a063c.zip
Add to monsters.xml and npcs.xml sort offset parameters.
sortOffsetY - this value will be substracted from y position while sorting deadSortOffsetY - this value will be substracted from dead bein y position while sorting By default sortOffsetY = 0 and deadSortOffsetY = 31
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 2d5971f91..8b25b4564 100644
--- a/src/resources/beinginfo.h
+++ b/src/resources/beinginfo.h
@@ -151,6 +151,18 @@ class BeingInfo
bool isTargetSelection() const
{ return mTargetSelection; }
+ int getSortOffsetY()
+ { return mSortOffsetY; }
+
+ void setSortOffsetY(const int n)
+ { mSortOffsetY = n; }
+
+ int getDeadSortOffsetY()
+ { return mDeadSortOffsetY; }
+
+ void setDeadSortOffsetY(const int n)
+ { mDeadSortOffsetY = n; }
+
static void clear();
private:
@@ -166,6 +178,8 @@ class BeingInfo
int mMaxHP;
bool mStaticMaxHP;
bool mTargetSelection;
+ int mSortOffsetY;
+ int mDeadSortOffsetY;
};
typedef std::map<int, BeingInfo*> BeingInfos;