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

Smoke Class Reference

A particle system to simulate smoke. More...

#include <smoke.h>

List of all members.

Public Member Functions

 Smoke ()
 Constructor.
void clear ()
 Clears all particles.
void createSmoke (vector2 &start, vector2 &velocity, int n)
 Creates new smoke particles.
void doPhysics (component timestep)
 Performs a step in the smoke particle simulation.
void draw ()
 Draws the smoke particles.

Public Attributes

int textureWidth
 The dimensions of the texture image.
int textureHeight
 The dimensions of the texture image.
unsigned char * image
 The texture image.


Detailed Description

A particle system to simulate smoke.


Constructor & Destructor Documentation

Smoke::Smoke  ) 
 

Constructor.

Loads all needed textures.


Member Function Documentation

void Smoke::createSmoke vector2 start,
vector2 velocity,
int  n
 

Creates new smoke particles.

Parameters:
start the initial position of the particles (perturbated for each particle)
velocity the initial velocity of the particles (perturbated for ecah particle)
n the number of particles to be created

void Smoke::doPhysics component  timestep  ) 
 

Performs a step in the smoke particle simulation.

Parameters:
timestep the time step


The documentation for this class was generated from the following files:
Generated on Sun Jul 10 22:32:04 2005 for S12 by  doxygen 1.4.2