News SF.net Project Frequently Asked Questions Documentation Downloads Mailing Lists How to Contribute

SourceForge.net Logo

Changing the way games are made and played.

Zap::FXTrail class Reference

Zap::FXTrail Class Reference

#include <sparkManager.h>


Public Member Functions

 FXTrail (U32 dropFrequency=32, U32 len=15)
 ~FXTrail ()
void update (Point pos, bool boosted=false, bool invisible=false)
 Update the point this trail is attached to.

void tick (U32 dT)
void render ()
void reset ()
Point getLastPos ()

Static Public Member Functions

void renderTrails ()

Private Member Functions

void registerTrail ()
void unregisterTrail ()

Private Attributes

Vector< TrailNodemNodes
U32 mDropFreq
S32 mLength
FXTrailmNext

Static Private Attributes

FXTrailmHead


Constructor & Destructor Documentation

Zap::FXTrail::FXTrail U32  dropFrequency = 32,
U32  len = 15
 

Zap::FXTrail::~FXTrail  ) 
 


Member Function Documentation

void Zap::FXTrail::registerTrail  )  [private]
 

void Zap::FXTrail::unregisterTrail  )  [private]
 

void Zap::FXTrail::update Point  pos,
bool  boosted = false,
bool  invisible = false
 

Update the point this trail is attached to.

void Zap::FXTrail::tick U32  dT  ) 
 

void Zap::FXTrail::render  ) 
 

void Zap::FXTrail::reset  ) 
 

Point Zap::FXTrail::getLastPos  ) 
 

void Zap::FXTrail::renderTrails  )  [static]
 


Field Documentation

Vector<TrailNode> Zap::FXTrail::mNodes [private]
 

U32 Zap::FXTrail::mDropFreq [private]
 

S32 Zap::FXTrail::mLength [private]
 

FXTrail* Zap::FXTrail::mNext [private]
 

FXTrail* Zap::FXTrail::mHead [static, private]