From 2464d9d85019711583ef830c2fdeae8a6772cb53 Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Sun, 1 Feb 2015 16:29:52 +0300
Subject: Show shop name on players.

---
 src/being/being.cpp | 6 ++++++
 src/being/being.h   | 6 ++++++
 2 files changed, 12 insertions(+)

(limited to 'src/being')

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;
-- 
cgit v1.2.3-70-g09d2