From a498132aa32be5fdf8d4227a7332016fc90ed87d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 5 Apr 2013 00:21:02 +0300 Subject: add animation effect to being. can be used for now from effects.xml with attribute "sprite". --- src/being.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/being.h') 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 */ -- cgit v1.2.3-60-g2f50