diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-07-05 03:41:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-07-05 03:41:13 +0300 |
commit | d0571ca16bb4ef11a718cfa78dc29b57080fcc72 (patch) | |
tree | add362fa6b01bb83c608a78b3a56bf8b52136767 /src/being.h | |
parent | 0202b0b4cdac57a04a3765f6bca893bd3b5c9812 (diff) | |
download | manaplus-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.tar.gz manaplus-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.tar.bz2 manaplus-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.tar.xz manaplus-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.zip |
Add ability to send client states to other clients.
Using for this emotes.
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/src/being.h b/src/being.h index b34773ab2..54d922279 100644 --- a/src/being.h +++ b/src/being.h @@ -78,6 +78,7 @@ enum Gender GENDER_UNSPECIFIED = 2 }; + class BeingEquipBackend : public Equipment::Backend { public: @@ -102,6 +103,14 @@ class Being : public ActorSprite, public ConfigListener friend class BeingEquipBackend; friend class LocalPlayer; + enum FLAGS + { + FLAG_SHOP = 1, + FLAG_AWAY = 2, + FLAG_INACTIVE = 4, + FLAG_SPECIAL = 128 + 64 + }; + /** * Action the being is currently performing * WARNING: Has to be in sync with the same enum in the Being class @@ -541,11 +550,7 @@ class Being : public ActorSprite, public ConfigListener * Set the Emoticon type and time displayed above * the being. */ - void setEmote(Uint8 emotion, int emote_time) - { - mEmotion = emotion; - mEmotionTime = emote_time; - } + void setEmote(Uint8 emotion, int emote_time); /** * Get the current Emoticon type displayed above @@ -741,6 +746,15 @@ class Being : public ActorSprite, public ConfigListener static void saveComment(const std::string &name, const std::string &comment); + bool isAdvanced() + { return mAdvanced; } + + void setAdvanced(bool n) + { mAdvanced = n; } + + bool isShopEnabled() + { return mShop; } + protected: /** * Sets the new path for this being. @@ -874,6 +888,10 @@ class Being : public ActorSprite, public ConfigListener int *mSpriteHide; std::string mComment; bool mGotComment; + bool mAdvanced; + bool mShop; + bool mAway; + bool mInactive; }; extern std::list<BeingCacheEntry*> beingInfoCache; |