diff options
Diffstat (limited to 'src/gui/statuswindow.h')
-rw-r--r-- | src/gui/statuswindow.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/gui/statuswindow.h b/src/gui/statuswindow.h index d99368b8..9120d978 100644 --- a/src/gui/statuswindow.h +++ b/src/gui/statuswindow.h @@ -22,7 +22,7 @@ #ifndef STATUS_H #define STATUS_H -#include "guichanfwd.h" +#include "eventlistener.h" #include "gui/widgets/window.h" @@ -40,24 +40,12 @@ class VertContainer; * * \ingroup Interface */ -class StatusWindow : public Window +class StatusWindow : public Window, public EventListener { public: - enum { // Some update constants - HP = -1, - MP = -2, - EXP = -3, - MONEY = -4, - CHAR_POINTS = -5, - LEVEL = -6 - }; - - /** - * Constructor. - */ StatusWindow(); - std::string update(int id); + void event(Event::Channel channel, const Event &event); void updateAttrs(); |