summaryrefslogtreecommitdiff
path: root/src/being/actorsprite.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-10 22:03:10 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-10 22:03:10 +0300
commitf9a7f96525c7485de4cf27f973f0b52f5d74f048 (patch)
treebe1ed401dffb832f9d923760ac89ad415cfc4d7f /src/being/actorsprite.h
parent314147c53d571345436d2def199213fa71f22c9d (diff)
downloadmv-f9a7f96525c7485de4cf27f973f0b52f5d74f048.tar.gz
mv-f9a7f96525c7485de4cf27f973f0b52f5d74f048.tar.bz2
mv-f9a7f96525c7485de4cf27f973f0b52f5d74f048.tar.xz
mv-f9a7f96525c7485de4cf27f973f0b52f5d74f048.zip
Add support for initial particle effect for effect from status-effects.xml
Diffstat (limited to 'src/being/actorsprite.h')
-rw-r--r--src/being/actorsprite.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/being/actorsprite.h b/src/being/actorsprite.h
index 2ee96f73c..1a32ceaf9 100644
--- a/src/being/actorsprite.h
+++ b/src/being/actorsprite.h
@@ -34,6 +34,7 @@
#include "enums/simpletypes/beingid.h"
#include "enums/simpletypes/enable.h"
#include "enums/simpletypes/forcedisplay.h"
+#include "enums/simpletypes/isstart.h"
#include "enums/resources/map/blocktype.h"
@@ -108,7 +109,8 @@ class ActorSprite notfinal : public CompoundSprite, public Actor
{ mUsedTargetCursor = nullptr; }
void setStatusEffect(const int32_t index,
- const Enable active);
+ const Enable active,
+ const IsStart start);
void setStatusEffectOpitons(const uint32_t option,
const uint32_t opt1,
@@ -197,7 +199,8 @@ class ActorSprite notfinal : public CompoundSprite, public Actor
* The new flag is passed.
*/
virtual void updateStatusEffect(const int32_t index,
- const Enable newStatus);
+ const Enable newStatus,
+ const IsStart start);
/**
* Handle an update to a status or stun effect
@@ -206,7 +209,8 @@ class ActorSprite notfinal : public CompoundSprite, public Actor
* \param effectId -1 for stun, otherwise the effect index
*/
virtual void handleStatusEffect(const StatusEffect *const effect,
- const int32_t effectId);
+ const int32_t effectId,
+ const IsStart start);
void setupSpriteDisplay(const SpriteDisplay &display,
const ForceDisplay forceDisplay