diff options
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; |