Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | Related Pages

ParticleSystem::ParticleSubSystem Class Reference

#include <particle.h>

Collaboration diagram for ParticleSystem::ParticleSubSystem:

Collaboration graph
[legend]
List of all members.

Detailed Description

An array of a fixed numer of particles.

Author:
Mattias Jansson (mattias@realityrift.com)


Public Types

enum  PARTICLESUBSYSTEMDEF { NUMPARTICLES = 10 }
 Defined for a particle subsystem. More...


Public Member Functions

 ParticleSubSystem ()
 ~ParticleSubSystem ()
int GetFreeSlot ()
void FreeSlot (unsigned int uiSlot)

Public Attributes

Particlem_apkParticles [NUMPARTICLES]
float m_afLifetime [NUMPARTICLES]
float m_afTTL [NUMPARTICLES]
unsigned int m_uiNumUsedSlots


Member Enumeration Documentation

enum PARTICLESUBSYSTEMDEF
 

Defined for a particle subsystem.

Enumeration values:
NUMPARTICLES  Number of particles in a subsystem


Constructor & Destructor Documentation

ParticleSubSystem  )  [inline]
 

~ParticleSubSystem  ) 
 

Deallocate remaining particles


Member Function Documentation

int GetFreeSlot  )  [inline]
 

Returns:
Index to free slot (-1 if none)

void FreeSlot unsigned int  uiSlot  )  [inline]
 

Free slot

Parameters:
uiSlot Slot to free


Member Data Documentation

Particle* m_apkParticles[ NUMPARTICLES ]
 

Particles

float m_afLifetime[ NUMPARTICLES ]
 

Lifetime of each particle

float m_afTTL[ NUMPARTICLES ]
 

TTL of each particle

unsigned int m_uiNumUsedSlots
 

Number of used slots


The documentation for this class was generated from the following file:
Generated on Wed Jan 21 14:21:13 2004 for NeoEngine by doxygen 1.3.5