From aa42c03c8a6b10d4fac03143f06811d94a253270 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sat, 15 Jan 2005 11:32:09 +0000 Subject: Solved stats window problem with updating variable and sending stat update. --- src/gui/stats.h | 83 +++++++++++++++++++++++++++------------------------------ 1 file changed, 39 insertions(+), 44 deletions(-) (limited to 'src/gui/stats.h') diff --git a/src/gui/stats.h b/src/gui/stats.h index b730aefb..a220f125 100644 --- a/src/gui/stats.h +++ b/src/gui/stats.h @@ -32,51 +32,46 @@ #include class StatsWindow : public Window, public gcn::ActionListener { - public: - /** - * Creates the Stats window. - */ - static StatsWindow *create_statswindow(); - - /** - * Called when receiving actions from widget. - */ - void action(const std::string& eventId); - - /** - * Updates stats in window. - */ - void update(); - - private: - int i; + public: + /** + * Constructor. + */ + StatsWindow(); - /** - * Stats captions. - */ - gcn::Label *statsLabel[6]; - gcn::Label *statsDisplayLabel[6]; - gcn::Label *remainingStatsPointsLabel; - - /** - * Stats buttons. - */ - Button *statsButton[6]; - - /** - * Stats window ptr. - */ - static StatsWindow *ptr; - - /** - * Constructor. - */ - StatsWindow(); - - /** - * Destructor. - */ - virtual ~StatsWindow(); + /** + * Destructor. + */ + virtual ~StatsWindow(); + + /** + * Called when receiving actions from widget. + */ + void action(const std::string& eventId); + + /** + * Updates stats in window. + */ + void update(); + + private: + int i; + + /** + * Stats captions. + */ + gcn::Label *statsLabel[6]; + gcn::Label *statsDisplayLabel[6]; + gcn::Label *remainingStatsPointsLabel; + + /** + * Stats buttons. + */ + Button *statsButton[6]; + + /** + * Stats window ptr. + */ + static StatsWindow *ptr; }; #endif /* _TMW_STATS_WINDOW_H */ -- cgit v1.2.3-70-g09d2