summaryrefslogtreecommitdiff
path: root/src/being/localplayer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-27 14:50:47 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-27 14:50:47 +0300
commit744b6e62e1252ca50445b21f671ad8d81dd28ea1 (patch)
tree79adc9663a740ed471e33c97932ce6b28de11377 /src/being/localplayer.h
parent2ee2f8b060e4fe88feeeba5508189c916e55a70d (diff)
downloadmanaplus-744b6e62e1252ca50445b21f671ad8d81dd28ea1.tar.gz
manaplus-744b6e62e1252ca50445b21f671ad8d81dd28ea1.tar.bz2
manaplus-744b6e62e1252ca50445b21f671ad8d81dd28ea1.tar.xz
manaplus-744b6e62e1252ca50445b21f671ad8d81dd28ea1.zip
Add AttributeListener.
Diffstat (limited to 'src/being/localplayer.h')
-rw-r--r--src/being/localplayer.h8
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;