#include <particlecontainer.h>
May be stacked with other ParticleContainers. All operations herein affect such stacked containers, unless the operations end in `Locally'.
Definition at line 35 of file particlecontainer.h.
Public Member Functions | |
ParticleContainer (ParticleContainer *parent=NULL, bool delParent=true) | |
Constructs a new particle container and assumes responsibility for its parent (for all operations defined herein, except when ending in `Locally'). | |
virtual | ~ParticleContainer () |
void | clear () |
Kills and removes all particle effects. | |
virtual void | clearLocally () |
Kills and removes all particle effects (only in this container). | |
virtual void | moveTo (float x, float y) |
Sets the positions of all elements. | |
Protected Attributes | |
bool | mDelParent |
Delete mNext in destructor. | |
ParticleContainer * | mNext |
Contained container, if any. |
ParticleContainer::ParticleContainer | ( | ParticleContainer * | parent = NULL , |
|
bool | delParent = true | |||
) |
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 28 of file particlecontainer.cpp.
ParticleContainer::~ParticleContainer | ( | ) | [virtual] |
Definition at line 34 of file particlecontainer.cpp.
void ParticleContainer::clear | ( | ) |
virtual void ParticleContainer::clearLocally | ( | ) | [inline, virtual] |
Kills and removes all particle effects (only in this container).
Reimplemented in ParticleList, and ParticleVector.
Definition at line 55 of file particlecontainer.h.
void ParticleContainer::moveTo | ( | float | x, | |
float | y | |||
) | [virtual] |
Sets the positions of all elements.
Reimplemented in ParticleList, and ParticleVector.
Definition at line 48 of file particlecontainer.cpp.
bool ParticleContainer::mDelParent [protected] |
ParticleContainer* ParticleContainer::mNext [protected] |