diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-18 12:35:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-18 12:35:51 +0300 |
commit | 30a2658b93cebebeddf9aa9e7d9d37cc4fc80d3c (patch) | |
tree | 7d3b15f4e42b22e329c632d61e11a16ff0932b58 /src/resources/beinginfo.h | |
parent | 923bd5817bad530de2652529eaf7f5366188034c (diff) | |
download | manaverse-30a2658b93cebebeddf9aa9e7d9d37cc4fc80d3c.tar.gz manaverse-30a2658b93cebebeddf9aa9e7d9d37cc4fc80d3c.tar.bz2 manaverse-30a2658b93cebebeddf9aa9e7d9d37cc4fc80d3c.tar.xz manaverse-30a2658b93cebebeddf9aa9e7d9d37cc4fc80d3c.zip |
add name offsets for npc and monster names.
New attributes: nameOffsetX, nameOffsetY
Example for monsters.xml:
<monster id="0" name="Piou" targetCursor="small" walkType="fly" nameOffsetX="10">
Example for npcs.xml:
<npc id="304" nameOffsetX="-10" nameOffsetY="-5">
Diffstat (limited to 'src/resources/beinginfo.h')
-rw-r--r-- | src/resources/beinginfo.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h index d94e3db30..c90e3296e 100644 --- a/src/resources/beinginfo.h +++ b/src/resources/beinginfo.h @@ -160,6 +160,18 @@ class BeingInfo final int getTargetOffsetY() const A_WARN_UNUSED { return mTargetOffsetY; } + void setNameOffsetX(const int n) + { mNameOffsetX = n; } + + int getNameOffsetX() const A_WARN_UNUSED + { return mNameOffsetX; } + + void setNameOffsetY(const int n) + { mNameOffsetY = n; } + + int getNameOffsetY() const A_WARN_UNUSED + { return mNameOffsetY; } + void setMaxHP(const int n) { mMaxHP = n; } @@ -228,6 +240,8 @@ class BeingInfo final const std::map <int, ColorDB::ItemColor> *mColors; int mTargetOffsetX; int mTargetOffsetY; + int mNameOffsetX; + int mNameOffsetY; int mMaxHP; int mSortOffsetY; int mDeadSortOffsetY; |