From 8f24400fc10658db9636e6cdd315504d75c71a5d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 20 Jan 2014 21:09:46 +0300 Subject: add attack action for pets. New pets db attributes: attackOffsetX attackOffsetY attaclDirectionType --- src/resources/beinginfo.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/resources/beinginfo.h') diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h index d862f1020..31725d218 100644 --- a/src/resources/beinginfo.h +++ b/src/resources/beinginfo.h @@ -284,6 +284,18 @@ class BeingInfo final int getDeadOffsetY() const A_WARN_UNUSED { return mDeadOffsetY; } + void setAttackOffsetX(const int n) + { mAttackOffsetX = n; } + + int getAttackOffsetX() const A_WARN_UNUSED + { return mAttackOffsetX; } + + void setAttackOffsetY(const int n) + { mAttackOffsetY = n; } + + int getAttackOffsetY() const A_WARN_UNUSED + { return mAttackOffsetY; } + void setThinkTime(const int n) { mThinkTime = n; } @@ -308,6 +320,12 @@ class BeingInfo final int getDeadDirectionType() const A_WARN_UNUSED { return mDeadDirectionType; } + void setAttackDirectionType(const int n) + { mAttackDirectionType = n; } + + int getAttackDirectionType() const A_WARN_UNUSED + { return mAttackDirectionType; } + void setColorsList(const std::string &name); std::string getColor(const int idx) const A_WARN_UNUSED; @@ -348,10 +366,13 @@ class BeingInfo final int mMoveOffsetY; int mDeadOffsetX; int mDeadOffsetY; + int mAttackOffsetX; + int mAttackOffsetY; int mThinkTime; int mDirectionType; int mSitDirectionType; int mDeadDirectionType; + int mAttackDirectionType; bool mStaticMaxHP; bool mTargetSelection; }; -- cgit v1.2.3-60-g2f50