diff options
Diffstat (limited to 'src/gui/widgets/avatar.h')
-rw-r--r-- | src/gui/widgets/avatar.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/widgets/avatar.h b/src/gui/widgets/avatar.h index 550e43b4..69f7ed37 100644 --- a/src/gui/widgets/avatar.h +++ b/src/gui/widgets/avatar.h @@ -27,6 +27,7 @@ #include "gui/widgets/container.h" #include <string> +#include <sstream> class Image; class Icon; @@ -52,8 +53,17 @@ public: */ void setOnline(bool online); + void setHp(int hp); + + void setMaxHp(int maxhp); + + void updateAvatarLabel(); + private: std::string mName; + std::string mHpState; + std::string mMaxHpState; + std::stringstream mAvatarLabel; Icon *mStatus; gcn::Label *mLabel; }; |