ParticleVector Class Reference

#include <particlecontainer.h>

Inheritance diagram for ParticleVector:

ParticleContainer

List of all members.


Detailed Description

Particle container with indexing facilities.

Definition at line 97 of file particlecontainer.h.


Public Member Functions

 ParticleVector (ParticleContainer *parent=NULL, bool delParent=true)
virtual ~ParticleVector ()
virtual void setLocally (int index, Particle *particle)
 Sets a particle at a specified index.
virtual void delLocally (int index)
 Removes a particle at a specified index.
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

std::vector< Particle * > mIndexedElements

Constructor & Destructor Documentation

ParticleVector::ParticleVector ( ParticleContainer parent = NULL,
bool  delParent = true 
)

Definition at line 114 of file particlecontainer.cpp.

ParticleVector::~ParticleVector (  )  [virtual]

Definition at line 118 of file particlecontainer.cpp.


Member Function Documentation

void ParticleVector::setLocally ( int  index,
Particle particle 
) [virtual]

Sets a particle at a specified index.

Kills the previous particle there, if needed.

Definition at line 121 of file particlecontainer.cpp.

void ParticleVector::delLocally ( int  index  )  [virtual]

Removes a particle at a specified index.

Definition at line 135 of file particlecontainer.cpp.

void ParticleVector::clearLocally (  )  [virtual]

Kills and removes all particle effects (only in this container).

Reimplemented from ParticleContainer.

Definition at line 150 of file particlecontainer.cpp.

void ParticleVector::moveTo ( float  x,
float  y 
) [virtual]

Sets the positions of all elements.

Reimplemented from ParticleContainer.

Definition at line 156 of file particlecontainer.cpp.


Member Data Documentation

std::vector<Particle *> ParticleVector::mIndexedElements [protected]

Definition at line 118 of file particlecontainer.h.


The documentation for this class was generated from the following files:

Generated on Sun Apr 26 17:30:43 2009 for The Mana World by  doxygen 1.5.5