diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-20 21:09:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-20 21:09:46 +0300 |
commit | 8f24400fc10658db9636e6cdd315504d75c71a5d (patch) | |
tree | f2f5a1094f6c48040b87238612d4042704846e40 /src/being/localplayer.h | |
parent | 1f2dd660dad937a3c1f2a2dfc07b756965e4ddae (diff) | |
download | manaplus-8f24400fc10658db9636e6cdd315504d75c71a5d.tar.gz manaplus-8f24400fc10658db9636e6cdd315504d75c71a5d.tar.bz2 manaplus-8f24400fc10658db9636e6cdd315504d75c71a5d.tar.xz manaplus-8f24400fc10658db9636e6cdd315504d75c71a5d.zip |
add attack action for pets.
New pets db attributes:
attackOffsetX
attackOffsetY
attaclDirectionType
Diffstat (limited to 'src/being/localplayer.h')
-rw-r--r-- | src/being/localplayer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/being/localplayer.h b/src/being/localplayer.h index 0e6ebe8a4..88a6f6754 100644 --- a/src/being/localplayer.h +++ b/src/being/localplayer.h @@ -503,6 +503,12 @@ class LocalPlayer final : public Being, std::string getGameModifiersString(); + int getLastAttackX() const override final + { return mTarget ? mTarget->getTileX() : mLastAttackX; } + + int getLastAttackY() const override final + { return mTarget ? mTarget->getTileY() : mLastAttackY; } + protected: void updateCoords() override final; |