DustSprite Class Reference

Cloud of dust that sprays from the tracks of a tank. More...

#include <DustSprite.h>

Inheritance diagram for DustSprite:

Inheritance graph
[legend]
Collaboration diagram for DustSprite:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DustSprite (TankSprite *parent)
 Createa a dust object connected to the tank-sprite parent.
virtual void paint ()
 Draw this sprite on screen.
virtual void update ()
 Update this sprite's pysics and stuff.

Protected Member Functions

void resetParticle (int idx)

Protected Attributes

TankSpritetank
Particle p [NUM_DUST_PARTICLES]
float offset [3]
float maxAge

Detailed Description

Cloud of dust that sprays from the tracks of a tank.


Constructor & Destructor Documentation

DustSprite::DustSprite ( TankSprite parent  ) 

Createa a dust object connected to the tank-sprite parent.


Member Function Documentation

virtual void DustSprite::paint (  )  [virtual]

Draw this sprite on screen.

The paint method is allowed to change the model-view matrix and any pushable attributes.

Implements Sprite.

void DustSprite::resetParticle ( int  idx  )  [protected]

virtual void DustSprite::update (  )  [virtual]

Update this sprite's pysics and stuff.

Note that the update method should use the static dTime variable to check the time since last invokation. The caller is responsible for setting this variable to an apropriate value!

Implements Sprite.


Member Data Documentation

float DustSprite::maxAge [protected]

float DustSprite::offset[3] [protected]

Particle DustSprite::p[NUM_DUST_PARTICLES] [protected]

TankSprite* DustSprite::tank [protected]


The documentation for this class was generated from the following file:
Generated on Sun Mar 11 15:33:26 2007 for MetalWarriors by  doxygen 1.4.7