diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-10 20:37:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-10 20:37:02 +0300 |
commit | b7d3acab99fe4975d4598b6c9ac1ad88edfa8506 (patch) | |
tree | a488f015fd7acee7654dab610eb95e904ffaeaa5 /src/effectmanager.h | |
parent | 81184f3787f4b9208b7ac1aacb3489ca143c9ccd (diff) | |
download | plus-b7d3acab99fe4975d4598b6c9ac1ad88edfa8506.tar.gz plus-b7d3acab99fe4975d4598b6c9ac1ad88edfa8506.tar.bz2 plus-b7d3acab99fe4975d4598b6c9ac1ad88edfa8506.tar.xz plus-b7d3acab99fe4975d4598b6c9ac1ad88edfa8506.zip |
Add support for casting status effect on ground.
Diffstat (limited to 'src/effectmanager.h')
-rw-r--r-- | src/effectmanager.h | 18 |
1 files changed, 17 insertions, 1 deletions
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 <vector> +#include <list> #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<EffectDescription> mEffects; + std::list<ParticleTimer> mTimers; }; extern EffectManager *effectManager; |