From 63446aa820db2a6ad83cb25c64a013e9e1418bd5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 Dec 2013 15:55:09 +0300 Subject: add direction logic to pets. New pet db attribute: directionType Possible values: 0 - not change direction. 1 - use same direction as owner. 2 - always look to owner. 3 - always look outside from owner. --- src/resources/beinginfo.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/resources/beinginfo.h') diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h index 9e0e88112..c1d53ccde 100644 --- a/src/resources/beinginfo.h +++ b/src/resources/beinginfo.h @@ -266,6 +266,12 @@ class BeingInfo final int getThinkTime() const A_WARN_UNUSED { return mThinkTime; } + void setDirectionType(const int n) + { mDirectionType = n; } + + int getDirectionType() const A_WARN_UNUSED + { return mDirectionType; } + void setColorsList(const std::string &name); std::string getColor(const int idx) const A_WARN_UNUSED; @@ -303,6 +309,7 @@ class BeingInfo final int mSitOffsetX; int mSitOffsetY; int mThinkTime; + int mDirectionType; bool mStaticMaxHP; bool mTargetSelection; }; -- cgit v1.2.3-60-g2f50