summaryrefslogtreecommitdiff
path: root/src/gui/widgets/avatar.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/avatar.h')
-rw-r--r--src/gui/widgets/avatar.h10
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;
};