From 1b1cfaf22ab8281943abed6f909fc32f6da46e61 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 18 Sep 2014 23:40:58 +0300 Subject: Add chat object to owner being. --- src/being/being.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/being/being.h') diff --git a/src/being/being.h b/src/being/being.h index ed1127844..a65fb1af0 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -61,6 +61,7 @@ class Party; class SpeechBubble; class Text; +struct ChatObject; struct ParticleInfo; extern volatile int cur_time; @@ -893,6 +894,11 @@ class Being notfinal : public ActorSprite, virtual int getLastAttackY() const { return mLastAttackY; } + void setChat(ChatObject *const obj); + + const ChatObject *getChat() const + { return mChat; } + protected: /** * Updates name's location. @@ -1011,6 +1017,7 @@ class Being notfinal : public ActorSprite, std::vector mPets; Being *mOwner; Particle *mSpecialParticle; + ChatObject *mChat; int mX; // position in tiles int mY; // position in tiles -- cgit v1.2.3-70-g09d2