diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-12-02 07:12:57 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-12-02 07:13:37 -0700 |
commit | d12c93d4d6fc38eb86b5cb8515f4b8f8a7e96b54 (patch) | |
tree | c5fa5507e4766bef7bf09e20e17d3294fdd6d6e5 /src/gui/widgets/avatar.h | |
parent | b3c59dafe02c5c060bb1d8de7040b3a3ee73da44 (diff) | |
download | mana-d12c93d4d6fc38eb86b5cb8515f4b8f8a7e96b54.tar.gz mana-d12c93d4d6fc38eb86b5cb8515f4b8f8a7e96b54.tar.bz2 mana-d12c93d4d6fc38eb86b5cb8515f4b8f8a7e96b54.tar.xz mana-d12c93d4d6fc38eb86b5cb8515f4b8f8a7e96b54.zip |
Simplify PartyMember by moving fields into Avatar
Diffstat (limited to 'src/gui/widgets/avatar.h')
-rw-r--r-- | src/gui/widgets/avatar.h | 17 |
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; }; |