Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

ParticleSystems::ParticleSystemManager Class Reference

The ParticleSystemManager Class. More...

#include <ParticleSystemManager.h>

List of all members.

Public Member Functions

 ParticleSystemManager ()
 The constructor.
 ~ParticleSystemManager ()
 The destructor.
void addSystem (ParticleSystem *particleSystem)
 A normal member function.
void removeSystem (ParticleSystem *particleSystem)
 A normal member function.
void update ()
 A normal member function.
void render ()
 A normal member function.
void reset ()
 A normal member function.
void pause ()
 A normal member Function.
void restart ()
 A normal member Function.
int getNextID ()
 A normal member function.
bool doesExist (ParticleSystem *particleSystem)
 A normal member function.

Private Attributes

psList pSystems
 The DataStructure.
int numParticleSystems
 A private Variable.


Detailed Description

The ParticleSystemManager Class.

The ParticleSystemManager is the main class for controlling all ParticleSystems within the scene. It provides functionality for adding, removing and rendering ParticleSystems.

Author:
Hannes Ricklefs

Definition at line 33 of file ParticleSystemManager.h.


Constructor & Destructor Documentation

ParticleSystemManager::ParticleSystemManager  ) 
 

The constructor.

Constructs a ParticleSystemManager.

Definition at line 10 of file ParticleSystemManager.cpp.

References numParticleSystems.

ParticleSystems::ParticleSystemManager::~ParticleSystemManager  ) 
 

The destructor.


Member Function Documentation

void ParticleSystemManager::addSystem ParticleSystem particleSystem  ) 
 

A normal member function.

Adds a new ParticleSystem.

Parameters:
particleSystem The new ParticlesSystem to add.

Definition at line 15 of file ParticleSystemManager.cpp.

References numParticleSystems, and pSystems.

Referenced by fire(), multiCollision(), and smoke().

bool ParticleSystemManager::doesExist ParticleSystem particleSystem  ) 
 

A normal member function.

Returns if the specified ParticleSystem is controlled by this ParticleSystemManager

Parameters:
particleSystem The ParticleSystem to be checked

Definition at line 96 of file ParticleSystemManager.cpp.

int ParticleSystemManager::getNextID  ) 
 

A normal member function.

Returns the ID that would be assigned when adding a new ParticleSystem

Definition at line 92 of file ParticleSystemManager.cpp.

References numParticleSystems.

Referenced by fire(), multiCollision(), and smoke().

void ParticleSystemManager::pause  ) 
 

A normal member Function.

Pause all the ParticleSystems

Definition at line 41 of file ParticleSystemManager.cpp.

References pSystems.

Referenced by KeyPressed().

void ParticleSystemManager::removeSystem ParticleSystem particleSystem  ) 
 

A normal member function.

Removes an existing ParticleSystem.

Parameters:
particleSystem The ParticlesSystem to be removed.

Definition at line 22 of file ParticleSystemManager.cpp.

References pSystems.

void ParticleSystemManager::render  ) 
 

A normal member function.

Render all the Particles within the scene

Definition at line 82 of file ParticleSystemManager.cpp.

References pSystems.

Referenced by display().

void ParticleSystemManager::reset  ) 
 

A normal member function.

Stop and shutdown the ParticleSystemManager

Definition at line 32 of file ParticleSystemManager.cpp.

References pSystems.

Referenced by resetPMManager().

void ParticleSystemManager::restart  ) 
 

A normal member Function.

Restart all the ParticleSystems

Definition at line 50 of file ParticleSystemManager.cpp.

References pSystems.

Referenced by resetPMManager().

void ParticleSystemManager::update  ) 
 

A normal member function.

Evolve all the ParticleSystems one evolution.

Definition at line 59 of file ParticleSystemManager.cpp.

References pSystems.

Referenced by display().


Member Data Documentation

int ParticleSystems::ParticleSystemManager::numParticleSystems [private]
 

A private Variable.

Stores the number of ParticleSystems controlled by this Manager.

Definition at line 119 of file ParticleSystemManager.h.

Referenced by addSystem(), getNextID(), and ParticleSystemManager().

psList ParticleSystems::ParticleSystemManager::pSystems [private]
 

The DataStructure.

Stores the all the ParticleSystems within the scene.

Definition at line 113 of file ParticleSystemManager.h.

Referenced by addSystem(), pause(), removeSystem(), render(), reset(), restart(), and update().


The documentation for this class was generated from the following files:
Generated on Thu Mar 24 11:05:02 2005 for ParticleSystem by  doxygen 1.4.1