diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-05 00:21:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-05 01:04:15 +0300 |
commit | a498132aa32be5fdf8d4227a7332016fc90ed87d (patch) | |
tree | 2a25422158248717df594e7d5e6058303b06cbcb /src/being.h | |
parent | faeaa157b1abada82243b8dc508201aa17db1df2 (diff) | |
download | manaplus-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.h | 4 |
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 */ |