summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-05 00:21:02 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-05 01:04:15 +0300
commita498132aa32be5fdf8d4227a7332016fc90ed87d (patch)
tree2a25422158248717df594e7d5e6058303b06cbcb /src/being.h
parentfaeaa157b1abada82243b8dc508201aa17db1df2 (diff)
downloadmanaplus-a498132aa32be5fdf8d4227a7332016fc90ed87d.tar.gz
manaplus-a498132aa32be5fdf8d4227a7332016fc90ed87d.tar.bz2
manaplus-a498132aa32be5fdf8d4227a7332016fc90ed87d.tar.xz
manaplus-a498132aa32be5fdf8d4227a7332016fc90ed87d.zip
add animation effect to being.
can be used for now from effects.xml with attribute "sprite".
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/being.h b/src/being.h
index 88fcae859..7c8fcb173 100644
--- a/src/being.h
+++ b/src/being.h
@@ -861,6 +861,8 @@ class Being : public ActorSprite, public ConfigListener
void removeSpecialEffect();
+ void addEffect(const std::string &name);
+
static uint8_t genderToInt(const Gender sex) A_WARN_UNUSED;
static Gender intToGender(uint8_t sex) A_WARN_UNUSED;
@@ -890,6 +892,8 @@ class Being : public ActorSprite, public ConfigListener
/** Time until the last speech sentence disappears */
int mSpeechTime;
+ AnimatedSprite* mAnimationEffect;
+
int mAttackSpeed; /**< Attack speed */
Action mAction; /**< Action the being is performing */