summaryrefslogtreecommitdiff
path: root/src/effectmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-08 20:40:13 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-08 23:17:42 +0300
commit877bfe276efcf663de5a8af8fa9464aaf935ca2d (patch)
treed00a91bae411640ca57b8cf7b8b2559a2fc4c36c /src/effectmanager.h
parent894af147511679d9db979b8169540c3e922ce375 (diff)
downloadmv-877bfe276efcf663de5a8af8fa9464aaf935ca2d.tar.gz
mv-877bfe276efcf663de5a8af8fa9464aaf935ca2d.tar.bz2
mv-877bfe276efcf663de5a8af8fa9464aaf935ca2d.tar.xz
mv-877bfe276efcf663de5a8af8fa9464aaf935ca2d.zip
Simplify using rotational particle effect.
Diffstat (limited to 'src/effectmanager.h')
-rw-r--r--src/effectmanager.h8
1 files changed, 8 insertions, 0 deletions
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 <vector>
@@ -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<EffectDescription> mEffects;
};