diff options
Diffstat (limited to 'src/particle/particle.h')
-rw-r--r-- | src/particle/particle.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/particle/particle.h b/src/particle/particle.h index f1a8154b6..859a61505 100644 --- a/src/particle/particle.h +++ b/src/particle/particle.h @@ -28,6 +28,8 @@ #include "enums/particle/alivestatus.h" #include "enums/particle/particletype.h" +#include "enums/simpletypes/beingid.h" + #include "particle/particleengine.h" #include "localconsts.h" @@ -238,6 +240,9 @@ class Particle notfinal : public Actor const signed char conditions) restrict2 { mDeathEffect = effectFile; mDeathEffectConditions = conditions; } + void setActor(const BeingId actor) + { mActor = actor; } + protected: void updateSelf() restrict2; @@ -270,6 +275,8 @@ class Particle notfinal : public Actor /**< The image used for this particle. */ Image *restrict mImage; + BeingId mActor; + private: // List of child emitters. Emitters mChildEmitters; |