summaryrefslogtreecommitdiff
path: root/src/effectmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-10 20:37:02 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-10 20:37:02 +0300
commitb7d3acab99fe4975d4598b6c9ac1ad88edfa8506 (patch)
treea488f015fd7acee7654dab610eb95e904ffaeaa5 /src/effectmanager.h
parent81184f3787f4b9208b7ac1aacb3489ca143c9ccd (diff)
downloadmanaplus-b7d3acab99fe4975d4598b6c9ac1ad88edfa8506.tar.gz
manaplus-b7d3acab99fe4975d4598b6c9ac1ad88edfa8506.tar.bz2
manaplus-b7d3acab99fe4975d4598b6c9ac1ad88edfa8506.tar.xz
manaplus-b7d3acab99fe4975d4598b6c9ac1ad88edfa8506.zip
Add support for casting status effect on ground.
Diffstat (limited to 'src/effectmanager.h')
-rw-r--r--src/effectmanager.h18
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;