diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-15 11:32:09 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-15 11:32:09 +0000 |
commit | aa42c03c8a6b10d4fac03143f06811d94a253270 (patch) | |
tree | 09a497a8a55b7bb0e071dc17db05b53eefe6677e /src/gui/stats.h | |
parent | 6c1e52274a4842ea1ab24ed6a1fd19c6126597b7 (diff) | |
download | mana-aa42c03c8a6b10d4fac03143f06811d94a253270.tar.gz mana-aa42c03c8a6b10d4fac03143f06811d94a253270.tar.bz2 mana-aa42c03c8a6b10d4fac03143f06811d94a253270.tar.xz mana-aa42c03c8a6b10d4fac03143f06811d94a253270.zip |
Solved stats window problem with updating variable and sending stat update.
Diffstat (limited to 'src/gui/stats.h')
-rw-r--r-- | src/gui/stats.h | 83 |
1 files changed, 39 insertions, 44 deletions
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 <sstream> 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 */ |