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.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gui/widgets/avatar.h b/src/gui/widgets/avatar.h
index dbe30a94..f5190be8 100644
--- a/src/gui/widgets/avatar.h
+++ b/src/gui/widgets/avatar.h
@@ -38,19 +38,35 @@ public:
~Avatar();
/**
+ * Returns the avatar's name.
+ */
+ std::string getName() const { return mName; };
+
+ /**
* Set the avatar's name.
*/
void setName(const std::string &name);
/**
+ * Returns the avatar's online status.
+ */
+ bool getOnline() const { return mOnline; }
+
+ /**
* Set the avatar's online status.
*/
void setOnline(bool online);
+ int getHp() const { return mHp; }
+
void setHp(int hp);
+ int getMaxHp() const { return mMaxHp; }
+
void setMaxHp(int maxHp);
+ bool getDisplayBold() const { return mDisplayBold; }
+
void setDisplayBold(bool displayBold) { mDisplayBold = displayBold; }
private:
@@ -61,6 +77,7 @@ private:
int mMaxHp;
Icon *mStatus;
gcn::Label *mLabel;
+ bool mOnline;
bool mDisplayBold;
};