summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-14 23:23:30 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-14 23:36:38 +0300
commitbf9bccc30a186e338f96c230a4f63cc924c77bd8 (patch)
treee46dbc2f022842982d89164ee598e1bcf827aa39 /src/being.h
parentfb0f86589ae9e2d582383cea43e0a391e8d4739d (diff)
downloadmanaverse-bf9bccc30a186e338f96c230a4f63cc924c77bd8.tar.gz
manaverse-bf9bccc30a186e338f96c230a4f63cc924c77bd8.tar.bz2
manaverse-bf9bccc30a186e338f96c230a4f63cc924c77bd8.tar.xz
manaverse-bf9bccc30a186e338f96c230a4f63cc924c77bd8.zip
Add ability to add comments to any players.
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h15
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;