cWeapon::Particle Struct Reference

#include <cWeapon.h>

List of all members.

Public Attributes

std::vector< float > pos
 Particle position vector.
std::vector< float > vel
 Particle velocity vector.
float fuel
 Remaining fuel in seconds.
float timer
 Time since start.
float spawn
 Countdown til spawning next Smoke-Particle.
OID target
 Object-ID of Particle target - attraction object or evasion.
int type
 User-type specifier or flags, program defines behavior and shape.
void * data
 Specific user-data like pointer to string for particle-text.
std::list< Particle * > trail
 Recursive sub Particles - or trail of particles.


Detailed Description

A Particle can be anything from bullets over flares to smoke. It has a position and a velocity. Besides it has a lifetime countdown (fuel), a time in existence timer and a spawn countdown which is for spawning particle offspring. A particle can have a trail consisting of other particles like smoke or other recursive systems (I hereby coin the term Particle-Tree).
The documentation for this struct was generated from the following file:

Generated on Fri Nov 27 23:31:00 2009 for Linwarrior 3D by  doxygen 1.5.5