diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-04-27 14:50:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-04-27 14:50:47 +0300 |
commit | 744b6e62e1252ca50445b21f671ad8d81dd28ea1 (patch) | |
tree | 79adc9663a740ed471e33c97932ce6b28de11377 /src/being/localplayer.h | |
parent | 2ee2f8b060e4fe88feeeba5508189c916e55a70d (diff) | |
download | manaverse-744b6e62e1252ca50445b21f671ad8d81dd28ea1.tar.gz manaverse-744b6e62e1252ca50445b21f671ad8d81dd28ea1.tar.bz2 manaverse-744b6e62e1252ca50445b21f671ad8d81dd28ea1.tar.xz manaverse-744b6e62e1252ca50445b21f671ad8d81dd28ea1.zip |
Add AttributeListener.
Diffstat (limited to 'src/being/localplayer.h')
-rw-r--r-- | src/being/localplayer.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/being/localplayer.h b/src/being/localplayer.h index 280e245cd..ecf118799 100644 --- a/src/being/localplayer.h +++ b/src/being/localplayer.h @@ -31,6 +31,7 @@ #include "listeners/actionlistener.h" #include "listeners/actorspritelistener.h" +#include "listeners/attributelistener.h" #include <vector> @@ -66,7 +67,8 @@ enum */ class LocalPlayer final : public Being, public ActorSpriteListener, - public DepricatedListener + public DepricatedListener, + public AttributeListener { public: /** @@ -509,6 +511,10 @@ class LocalPlayer final : public Being, int getLastAttackY() const override final { return mTarget ? mTarget->getTileY() : mLastAttackY; } + void attributeChanged(const int id, + const int oldVal, + const int newVal) override final; + protected: void updateCoords() override final; |