ManaPlus
|
#include <particlecontainer.h>
Public Member Functions | |
ParticleContainer (ParticleContainer *const parent, const bool delParent) | |
virtual | ~ParticleContainer () |
void | clear () |
virtual void | clearLocally () |
virtual void | moveTo (const float x, const float y) |
Protected Attributes | |
ParticleContainer * | mNext |
bool | mDelParent |
Set of particle effects. May be stacked with other ParticleContainers. All operations herein affect such stacked containers, unless the operations end in ‘Locally’.
Definition at line 34 of file particlecontainer.h.
ParticleContainer::ParticleContainer | ( | ParticleContainer *const | parent, |
const bool | delParent | ||
) |
Constructs a new particle container and assumes responsibility for its parent (for all operations defined herein, except when ending in ‘Locally’)
delParent means that the destructor should also free the parent.
Definition at line 30 of file particlecontainer.cpp.
|
virtual |
Definition at line 37 of file particlecontainer.cpp.
References clearLocally(), delete2, mDelParent, and mNext.
void ParticleContainer::clear | ( | ) |
Kills and removes all particle effects
Definition at line 45 of file particlecontainer.cpp.
References clear(), clearLocally(), and mNext.
Referenced by clear(), ActorSprite::setMap(), ActorSprite::setupSpriteDisplay(), and ActorSprite::~ActorSprite().
|
inlinevirtual |
Kills and removes all particle effects (only in this container)
Reimplemented in ParticleVector, and ParticleList.
Definition at line 59 of file particlecontainer.h.
Referenced by clear(), and ~ParticleContainer().
|
virtual |
Sets the positions of all elements
Reimplemented in ParticleVector, and ParticleList.
Definition at line 52 of file particlecontainer.cpp.
References mNext, moveTo(), x, and y.
Referenced by moveTo(), ParticleList::moveTo(), and ParticleVector::moveTo().
|
protected |
Delete mNext in destructor
Definition at line 69 of file particlecontainer.h.
Referenced by ~ParticleContainer().
|
protected |
Contained container, if any
Definition at line 68 of file particlecontainer.h.
Referenced by clear(), moveTo(), and ~ParticleContainer().