From 4464ef501c562cf6eeda3b59b1dfcf21d9dfb5a9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 19 Feb 2013 03:10:42 +0300 Subject: Add support for away particle effect. --- src/being.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/being.h') diff --git a/src/being.h b/src/being.h index 32508670b..5649b94cd 100644 --- a/src/being.h +++ b/src/being.h @@ -856,6 +856,12 @@ class Being : public ActorSprite, public ConfigListener Cursor::Cursor getHoverCursor() const A_WARN_UNUSED { return mInfo ? mInfo->getHoverCursor() : Cursor::CURSOR_POINTER; } + void addAfkEffect(); + + void removeAfkEffect(); + + void updateAwayEffect(); + static uint8_t genderToInt(const Gender sex) A_WARN_UNUSED; static Gender intToGender(uint8_t sex) A_WARN_UNUSED; @@ -987,6 +993,7 @@ class Being : public ActorSprite, public ConfigListener static bool mShowPlayersStatus; static bool mEnableReorderSprites; static bool mHideErased; + static int mAwayEffect; unsigned int mMoveTime; unsigned int mAttackTime; @@ -1011,6 +1018,7 @@ class Being : public ActorSprite, public ConfigListener bool mInactive; unsigned mNumber; unsigned char mHairColor; + Particle *mAfkParticle; }; extern std::list beingInfoCache; -- cgit v1.2.3-70-g09d2