Main Page Modules Namespaces C++ Classes Compound List File List Index
TNL: 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

static void | renderTrails ()

## Private Member Functions

void | registerTrail ()
void | unregisterTrail ()

## Private Attributes

Vector< TrailNode > | mNodes
U32 | mDropFreq
S32 | mLength
FXTrail * | mNext

## Static Private Attributes

static FXTrail * | mHead

## Data Structures

struct | TrailNode

## 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 | ( |  | ) |

static 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]`