From 877bfe276efcf663de5a8af8fa9464aaf935ca2d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 8 Apr 2015 20:40:13 +0300 Subject: Simplify using rotational particle effect. --- src/effectmanager.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/effectmanager.h') diff --git a/src/effectmanager.h b/src/effectmanager.h index 3ebc0f805..0e81ffa44 100644 --- a/src/effectmanager.h +++ b/src/effectmanager.h @@ -24,6 +24,7 @@ #define EFFECTMANAGER_H #include "resources/effectdescription.h" +#include "resources/spritedirection.h" #include @@ -49,6 +50,9 @@ class EffectManager final */ bool trigger(const int id, Being *const being, const int rotation = 0); + bool triggerDirection(const int id, Being *const being, + const SpriteDirection::Type &direction); + Particle *triggerReturn(const int id, Being *const being, const int rotation = 0); @@ -59,6 +63,10 @@ class EffectManager final bool trigger(const int id, const int x, const int y, const int rotation = 0); + void triggerDefault(int effectId, + Being *const being, + const int defaultEffectId); + private: std::vector mEffects; }; -- cgit v1.2.3-60-g2f50