diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-01 16:29:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-02 00:13:44 +0300 |
commit | 2464d9d85019711583ef830c2fdeae8a6772cb53 (patch) | |
tree | fd007695db4d5c4a06376c27421a3c5a61e129a3 /src/being | |
parent | b6a0e05498b2b1a64d9b407fb2416dbaa0faf407 (diff) | |
download | manaverse-2464d9d85019711583ef830c2fdeae8a6772cb53.tar.gz manaverse-2464d9d85019711583ef830c2fdeae8a6772cb53.tar.bz2 manaverse-2464d9d85019711583ef830c2fdeae8a6772cb53.tar.xz manaverse-2464d9d85019711583ef830c2fdeae8a6772cb53.zip |
Show shop name on players.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/being.cpp | 6 | ||||
-rw-r--r-- | src/being/being.h | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index c1ccf3c90..06012f708 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -175,6 +175,7 @@ Being::Being(const int id, mSpriteHide(new int[20]), mSpriteDraw(new int[20]), mComment(), + mBoard(), mPets(), mOwner(nullptr), mSpecialParticle(nullptr), @@ -3526,3 +3527,8 @@ void Being::setChat(ChatObject *const obj) delete mChat; mChat = obj; } + +void Being::setBoard(const std::string &text) +{ + mBoard = text; +} diff --git a/src/being/being.h b/src/being/being.h index 361277f27..0f6a81413 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -914,6 +914,11 @@ class Being notfinal : public ActorSprite, void setAreaSize(const int areaSize) { mAreaSize = areaSize; } + void setBoard(const std::string &text); + + std::string getBoard() const A_WARN_UNUSED + { return mBoard; } + protected: /** * Updates name's location. @@ -1029,6 +1034,7 @@ class Being notfinal : public ActorSprite, int *mSpriteHide; int *mSpriteDraw; std::string mComment; + std::string mBoard; std::vector<Being*> mPets; Being *mOwner; Particle *mSpecialParticle; |