diff options
Diffstat (limited to 'src/gui/stats.h')
-rw-r--r-- | src/gui/stats.h | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/src/gui/stats.h b/src/gui/stats.h index d95dbb9c..a10a9c70 100644 --- a/src/gui/stats.h +++ b/src/gui/stats.h @@ -26,10 +26,30 @@ #ifndef _STATS_H #define _STATS_H -#include <allegro.h> #include "../main.h" #include "gui.h" +#include "window.h" +#include "progressbar.h" +#include <allegro.h> + +/** + * The player statistics dialog. + * + * \ingroup GUI + */ +class StatsDialog : public Window { + public: + StatsDialog(gcn::Container *parent); + ~StatsDialog(); + + /** + * Updates this dialog with values from PLAYER_INFO *char_info + */ + void update(); -void update_stats_dialog(); + private: + gcn::Label *hp, *sp, *gp; + ProgressBar *healthBar, *manaBar; +}; #endif |