Ball and Spring Toy
Chapter 4 of Ian Parberry's "Introduction to Game Physics with Box2D"
|
The particle manager. More...
#include <ParticleManager.h>
Public Member Functions | |
CParticleManager (int size) | |
Constructor. | |
CParticle * | create (SpriteType sprite, D3DXVECTOR2 position) |
Create a particle. | |
void | move () |
Move all particles. | |
void | draw () |
Draw all particles. | |
Public Member Functions inherited from CAbstractList< CParticle > | |
CAbstractList (int size) | |
Constructor. | |
~CAbstractList () | |
Destructor. | |
BOOL | Insert (CParticle *newthing) |
Insert new thing. | |
CParticle * | create () |
Create and insert new thing. | |
void | clear () |
Clear the list. | |
Additional Inherited Members | |
Protected Attributes inherited from CAbstractList< CParticle > | |
CParticle ** | m_pList |
List of things. | |
int | m_nCount |
How many things in list. | |
int | m_nSize |
Maximum size of list. | |
The particle manager.
The particle manager is responsible for managing particles.
void CParticleManager::draw | ( | ) |
Draw all particles.
Ask the Render World to draw all of the game particles.
void CParticleManager::move | ( | ) |
Move all particles.
Move the game particles.