From b7d3acab99fe4975d4598b6c9ac1ad88edfa8506 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 10 Nov 2015 20:37:02 +0300 Subject: Add support for casting status effect on ground. --- src/effectmanager.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/effectmanager.h') diff --git a/src/effectmanager.h b/src/effectmanager.h index 0e81ffa44..16425908a 100644 --- a/src/effectmanager.h +++ b/src/effectmanager.h @@ -23,10 +23,13 @@ #ifndef EFFECTMANAGER_H #define EFFECTMANAGER_H +#include "particle/particletimer.h" + #include "resources/effectdescription.h" #include "resources/spritedirection.h" #include +#include #include "localconsts.h" @@ -60,15 +63,28 @@ class EffectManager final * Triggers a effect with the id, at * the specified x and y coordinate. */ - bool trigger(const int id, const int x, const int y, + bool trigger(const int id, + const int x, const int y, + const int endTime, const int rotation = 0); void triggerDefault(int effectId, Being *const being, const int defaultEffectId); + void triggerDefault(int effectId, + const int x, + const int y, + const int endTime, + const int defaultEffectId); + + void logic(); + + void clear(); + private: std::vector mEffects; + std::list mTimers; }; extern EffectManager *effectManager; -- cgit v1.2.3-70-g09d2