From 6a13899daed872debe2375c71903505e6434a731 Mon Sep 17 00:00:00 2001 From: Chuck Miller Date: Sat, 17 Jul 2010 21:01:26 -0400 Subject: Modify how attributes and stats are handled Handling moved from LocalPlayer to PlayerInfo class Event system used to update windows Reviewed-by: Jared Adams --- src/gui/statuswindow.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'src/gui/statuswindow.h') diff --git a/src/gui/statuswindow.h b/src/gui/statuswindow.h index a1fc4b4b..5be09b6a 100644 --- a/src/gui/statuswindow.h +++ b/src/gui/statuswindow.h @@ -23,6 +23,7 @@ #define STATUS_H #include "guichanfwd.h" +#include "listener.h" #include "gui/widgets/window.h" @@ -40,24 +41,15 @@ class VertContainer; * * \ingroup Interface */ -class StatusWindow : public Window +class StatusWindow : public Window, public Mana::Listener { 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(const std::string &channel, const Mana::Event &event); void setPointsNeeded(int id, int needed); -- cgit v1.2.3-70-g09d2