#include <ParticleSystemManager.h>
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. |
The ParticleSystemManager is the main class for controlling all ParticleSystems within the scene. It provides functionality for adding, removing and rendering ParticleSystems.
Definition at line 33 of file ParticleSystemManager.h.
|
The constructor. Constructs a ParticleSystemManager. Definition at line 10 of file ParticleSystemManager.cpp. References numParticleSystems. |
|
The destructor.
|
|
A normal member function. Adds a new ParticleSystem.
Definition at line 15 of file ParticleSystemManager.cpp. References numParticleSystems, and pSystems. Referenced by fire(), multiCollision(), and smoke(). |
|
A normal member function. Returns if the specified ParticleSystem is controlled by this ParticleSystemManager
Definition at line 96 of file ParticleSystemManager.cpp. |
|
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(). |
|
A normal member Function. Pause all the ParticleSystems Definition at line 41 of file ParticleSystemManager.cpp. References pSystems. Referenced by KeyPressed(). |
|
A normal member function. Removes an existing ParticleSystem.
Definition at line 22 of file ParticleSystemManager.cpp. References pSystems. |
|
A normal member function. Render all the Particles within the scene Definition at line 82 of file ParticleSystemManager.cpp. References pSystems. Referenced by display(). |
|
A normal member function. Stop and shutdown the ParticleSystemManager Definition at line 32 of file ParticleSystemManager.cpp. References pSystems. Referenced by resetPMManager(). |
|
A normal member Function. Restart all the ParticleSystems Definition at line 50 of file ParticleSystemManager.cpp. References pSystems. Referenced by resetPMManager(). |
|
A normal member function. Evolve all the ParticleSystems one evolution. Definition at line 59 of file ParticleSystemManager.cpp. References pSystems. Referenced by display(). |
|
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(). |
|
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(). |