diff options
author | Freeyorp <Freeyorp101@NOSPAM@hotmail.com> | 2009-05-11 00:45:17 +1200 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-05-10 11:38:37 -0600 |
commit | 7f15330d969e5c973429d03ca767551e7b67c3c3 (patch) | |
tree | 45a1688f5b58ccec447dc501d74447363aab9d42 /src/gui/widgets/avatar.h | |
parent | f3ab737d9d508aaa25b01b462fa9c8f6c7a0d5d2 (diff) | |
download | mana-7f15330d969e5c973429d03ca767551e7b67c3c3.tar.gz mana-7f15330d969e5c973429d03ca767551e7b67c3c3.tar.bz2 mana-7f15330d969e5c973429d03ca767551e7b67c3c3.tar.xz mana-7f15330d969e5c973429d03ca767551e7b67c3c3.zip |
Add support for viewing the health and maximum health of other nearby members of your party.
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; }; |