From 30a2658b93cebebeddf9aa9e7d9d37cc4fc80d3c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 18 Jul 2013 12:35:51 +0300 Subject: add name offsets for npc and monster names. New attributes: nameOffsetX, nameOffsetY Example for monsters.xml: Example for npcs.xml: --- src/resources/beinginfo.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/resources/beinginfo.h') 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 *mColors; int mTargetOffsetX; int mTargetOffsetY; + int mNameOffsetX; + int mNameOffsetY; int mMaxHP; int mSortOffsetY; int mDeadSortOffsetY; -- cgit v1.2.3-60-g2f50