summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-19 03:10:42 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-19 13:17:00 +0300
commit4464ef501c562cf6eeda3b59b1dfcf21d9dfb5a9 (patch)
tree1eab9247b1b58d448d64e25f6906447dfba53bd4 /src/being.h
parent2a09c2afe8bd1f476ef1901c9c639896534a081c (diff)
downloadplus-4464ef501c562cf6eeda3b59b1dfcf21d9dfb5a9.tar.gz
plus-4464ef501c562cf6eeda3b59b1dfcf21d9dfb5a9.tar.bz2
plus-4464ef501c562cf6eeda3b59b1dfcf21d9dfb5a9.tar.xz
plus-4464ef501c562cf6eeda3b59b1dfcf21d9dfb5a9.zip
Add support for away particle effect.
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h8
1 files changed, 8 insertions, 0 deletions
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<BeingCacheEntry*> beingInfoCache;