diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-14 23:23:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-14 23:36:38 +0300 |
commit | bf9bccc30a186e338f96c230a4f63cc924c77bd8 (patch) | |
tree | e46dbc2f022842982d89164ee598e1bcf827aa39 /src/being.h | |
parent | fb0f86589ae9e2d582383cea43e0a391e8d4739d (diff) | |
download | plus-bf9bccc30a186e338f96c230a4f63cc924c77bd8.tar.gz plus-bf9bccc30a186e338f96c230a4f63cc924c77bd8.tar.bz2 plus-bf9bccc30a186e338f96c230a4f63cc924c77bd8.tar.xz plus-bf9bccc30a186e338f96c230a4f63cc924c77bd8.zip |
Add ability to add comments to any players.
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/being.h b/src/being.h index 652b8a889..ddcef1930 100644 --- a/src/being.h +++ b/src/being.h @@ -725,8 +725,21 @@ class Being : public ActorSprite, public ConfigListener std::string getGenderSignWithSpace() const; + void updateComment(); + + std::string getComment() + { return mComment; } + + void setComment(std::string n) + { mComment = n; } + static void clearCache(); + static std::string loadComment(const std::string &name); + + static void saveComment(const std::string &name, + const std::string &comment); + protected: /** * Sets the new path for this being. @@ -858,6 +871,8 @@ class Being : public ActorSprite, public ConfigListener unsigned int mPvpRank; int *mSpriteRemap; int *mSpriteHide; + std::string mComment; + bool mGotComment; }; extern std::list<BeingCacheEntry*> beingInfoCache; |