diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-24 15:06:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-24 15:06:37 +0300 |
commit | a1f5338e93e5f8b2bdac2c305824a925fd2e4141 (patch) | |
tree | ca2b0d85f2e026d45ee8b0f66d282333a96f0d83 /src/resources/beinginfo.h | |
parent | 1821dfad294c0d850be326639946b12cdbdcecaf (diff) | |
download | manaplus-a1f5338e93e5f8b2bdac2c305824a925fd2e4141.tar.gz manaplus-a1f5338e93e5f8b2bdac2c305824a925fd2e4141.tar.bz2 manaplus-a1f5338e93e5f8b2bdac2c305824a925fd2e4141.tar.xz manaplus-a1f5338e93e5f8b2bdac2c305824a925fd2e4141.zip |
add speed parameter for pets.
New pet db option: walkSpeed
Diffstat (limited to 'src/resources/beinginfo.h')
-rw-r--r-- | src/resources/beinginfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h index a752898f8..556088380 100644 --- a/src/resources/beinginfo.h +++ b/src/resources/beinginfo.h @@ -236,6 +236,12 @@ class BeingInfo final int getFollowDist() { return mFollowDist; } + void setWalkSpeed(const int n) + { mWalkSpeed = n; } + + int getWalkSpeed() + { return mWalkSpeed; } + void setColorsList(const std::string &name); std::string getColor(const int idx) const; @@ -268,6 +274,7 @@ class BeingInfo final int mHeight; int mStartFollowDist; int mFollowDist; + int mWalkSpeed; bool mStaticMaxHP; bool mTargetSelection; }; |