diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-04-27 16:24:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-04-27 16:24:12 +0300 |
commit | a6f6dc9c2db87ed852cac1f8a3047f9b1d3efac0 (patch) | |
tree | bd1e6b6a1cdb42b5e6d4489158d438fe8c05f533 /src/being/localplayer.h | |
parent | af0ae4d0b7c56d540639bb1f4ba7cc458ec718c1 (diff) | |
download | manaverse-a6f6dc9c2db87ed852cac1f8a3047f9b1d3efac0.tar.gz manaverse-a6f6dc9c2db87ed852cac1f8a3047f9b1d3efac0.tar.bz2 manaverse-a6f6dc9c2db87ed852cac1f8a3047f9b1d3efac0.tar.xz manaverse-a6f6dc9c2db87ed852cac1f8a3047f9b1d3efac0.zip |
Add StatListener.
Diffstat (limited to 'src/being/localplayer.h')
-rw-r--r-- | src/being/localplayer.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/being/localplayer.h b/src/being/localplayer.h index ecf118799..5e8e0e8fe 100644 --- a/src/being/localplayer.h +++ b/src/being/localplayer.h @@ -23,8 +23,6 @@ #ifndef BEING_LOCALPLAYER_H #define BEING_LOCALPLAYER_H -#include "listeners/depricatedlistener.h" - #include "being/being.h" #include "gui/userpalette.h" @@ -32,6 +30,7 @@ #include "listeners/actionlistener.h" #include "listeners/actorspritelistener.h" #include "listeners/attributelistener.h" +#include "listeners/statlistener.h" #include <vector> @@ -67,8 +66,8 @@ enum */ class LocalPlayer final : public Being, public ActorSpriteListener, - public DepricatedListener, - public AttributeListener + public AttributeListener, + public StatListener { public: /** @@ -379,9 +378,6 @@ class LocalPlayer final : public Being, */ void optionChanged(const std::string &value) override final; - void processEvent(const Channels channel, - const DepricatedEvent &event) override final; - /** * set a following player. */ @@ -515,6 +511,10 @@ class LocalPlayer final : public Being, const int oldVal, const int newVal) override final; + void statChanged(const int id, + const int oldVal1, + const int oldVal2) override final; + protected: void updateCoords() override final; |