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/gui/windows/statuswindow.h | |
parent | af0ae4d0b7c56d540639bb1f4ba7cc458ec718c1 (diff) | |
download | manaplus-a6f6dc9c2db87ed852cac1f8a3047f9b1d3efac0.tar.gz manaplus-a6f6dc9c2db87ed852cac1f8a3047f9b1d3efac0.tar.bz2 manaplus-a6f6dc9c2db87ed852cac1f8a3047f9b1d3efac0.tar.xz manaplus-a6f6dc9c2db87ed852cac1f8a3047f9b1d3efac0.zip |
Add StatListener.
Diffstat (limited to 'src/gui/windows/statuswindow.h')
-rw-r--r-- | src/gui/windows/statuswindow.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gui/windows/statuswindow.h b/src/gui/windows/statuswindow.h index 11aa2ad05..797e7647f 100644 --- a/src/gui/windows/statuswindow.h +++ b/src/gui/windows/statuswindow.h @@ -27,7 +27,7 @@ #include "listeners/actionlistener.h" #include "listeners/attributelistener.h" -#include "listeners/depricatedlistener.h" +#include "listeners/statlistener.h" #include <map> @@ -45,8 +45,8 @@ class VertContainer; */ class StatusWindow final : public Window, public ActionListener, - public DepricatedListener, - public AttributeListener + public AttributeListener, + public StatListener { public: /** @@ -56,9 +56,6 @@ class StatusWindow final : public Window, A_DELETE_COPY(StatusWindow) - void processEvent(const Channels channel, - const DepricatedEvent &event) override; - void setPointsNeeded(const int id, const int needed); void addAttribute(const int id, const std::string &restrict name, @@ -92,6 +89,10 @@ class StatusWindow final : public Window, const int oldVal, const int newVal) override final; + void statChanged(const int id, + const int oldVal1, + const int oldVal2) override final; + private: static std::string translateLetter(const char *const letters); static std::string translateLetter2(std::string letters); |