Ball and Spring Toy
Chapter 4 of Ian Parberry's "Introduction to Game Physics with Box2D"
 All Classes Files Functions Variables Enumerations Pages
Public Member Functions | List of all members
CParticleManager Class Reference

The particle manager. More...

#include <ParticleManager.h>

Inheritance diagram for CParticleManager:
CAbstractList< CParticle >

Public Member Functions

 CParticleManager (int size)
 Constructor.
 
CParticlecreate (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.
 
CParticlecreate ()
 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.
 

Detailed Description

The particle manager.

The particle manager is responsible for managing particles.

Member Function Documentation

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.