summaryrefslogtreecommitdiff
path: root/src/being/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-18 00:00:46 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-18 00:00:46 +0300
commit129f749d057e3b96161630934da7b2d89dec3c71 (patch)
tree1a11c98aaf08a46d544e9b3acf3910a560546c8b /src/being/being.h
parent39ab9ebf7464f77f079a8edecd3f43870245b8ee (diff)
downloadmanaverse-129f749d057e3b96161630934da7b2d89dec3c71.tar.gz
manaverse-129f749d057e3b96161630934da7b2d89dec3c71.tar.bz2
manaverse-129f749d057e3b96161630934da7b2d89dec3c71.tar.xz
manaverse-129f749d057e3b96161630934da7b2d89dec3c71.zip
Add eathena defines into being.
Diffstat (limited to 'src/being/being.h')
-rw-r--r--src/being/being.h30
1 files changed, 18 insertions, 12 deletions
diff --git a/src/being/being.h b/src/being/being.h
index 6364f8aed..9f9f3992d 100644
--- a/src/being/being.h
+++ b/src/being/being.h
@@ -891,11 +891,25 @@ class Being notfinal : public ActorSprite,
virtual int getLastAttackY() const
{ return mLastAttackY; }
+#ifdef EATHENA_SUPPORT
void setChat(ChatObject *const obj);
ChatObject *getChat() const
{ return mChat; }
+ void setRiding(const bool b) override final;
+
+ void setSellBoard(const std::string &text);
+
+ std::string getSellBoard() const A_WARN_UNUSED
+ { return mSellBoard; }
+
+ void setBuyBoard(const std::string &text);
+
+ std::string getBuyBoard() const A_WARN_UNUSED
+ { return mBuyBoard; }
+#endif
+
void setKarma(const int karma)
{ mKarma = karma; }
@@ -920,18 +934,6 @@ class Being notfinal : public ActorSprite,
void setAreaSize(const int areaSize)
{ mAreaSize = areaSize; }
- void setSellBoard(const std::string &text);
-
- std::string getSellBoard() const A_WARN_UNUSED
- { return mSellBoard; }
-
- void setBuyBoard(const std::string &text);
-
- std::string getBuyBoard() const A_WARN_UNUSED
- { return mBuyBoard; }
-
- void setRiding(const bool b) override final;
-
protected:
/**
* Updates name's location.
@@ -1050,13 +1052,17 @@ class Being notfinal : public ActorSprite,
int *mSpriteHide;
int *mSpriteDraw;
std::string mComment;
+#ifdef EATHENA_SUPPORT
std::string mBuyBoard;
std::string mSellBoard;
+#endif
std::vector<Being*> mPets;
Being *mOwner;
Particle *mSpecialParticle;
+#ifdef EATHENA_SUPPORT
ChatObject *mChat;
HorseInfo *mHorseInfo;
+#endif
AnimatedSprite *mHorseSprite;
int mX; // position in tiles