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

Puff Class Reference

A particle system to simulate "puffs" in the event of a broken edge. More...

#include <puff.h>

List of all members.

Public Member Functions

void clear ()
 Clears all particles.
void createPuff (vector2 &start, vector2 &end)
 Constructs a "puff" over a (broken) edge.
void doPhysics (component timestep)
 Performs a step in the puff particle simulation.
void draw ()
 Draws the puff particles.


Detailed Description

A particle system to simulate "puffs" in the event of a broken edge.


Member Function Documentation

void Puff::createPuff vector2 start,
vector2 end
 

Constructs a "puff" over a (broken) edge.

The particles are distributed randomly along the edge.

Parameters:
start the start point of the edge
end the end point of the edge

void Puff::doPhysics component  timestep  ) 
 

Performs a step in the puff 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