Back to bsyte

PartikelSystem Class Reference

Ein Partikelsystem beschreibt das Verhalten von Partikeln, die zu diesem System gehoeren. More...

#include <PartikelSystem.h>

Collaboration diagram for PartikelSystem:

List of all members.

Public Member Functions

 PartikelSystem ()
 Konstruktor.
virtual ~PartikelSystem ()
 Destruktor.
void animate (void)
 Animiert alle Partikel.
void transform (Matrix &matTranslate, Matrix &matRotate)
 Transformiert alle Partikel.
void project (float nearDist, float farDist)
 Projiziert alle Partikel auf die 2D-NearPlane, Windowfenster.
void load (DataInputStream &dataIn)
 Liest das Partikelsystem aus dem Inputstream.
void init (std::vector< Sprite * > &spriteList)
 Das Partikelsystem wird initialisiert.
void save (DataOutputStream &dataOut)
 Serialisiert das PartikelSystem in den Outputstream.

Public Attributes

int m_zoneID
std::vector< Partikel * > m_partikelList

Private Member Functions

void clear (void)
 Entfernt alle Partikel aus dem System.
float getRandom (int max)
 liefert eine Zufallszahl
void init_0 (void)
 Es wird ein Partikel gerendert. keine Animation, keine Bewegung, keine Lifetime.
void init_1 (void)
 Animation: Bewegt sich oszillierend in y-Richtung.
void init_2 (void)
 Animation: Schraeger Wurf.
void init_3 (void)
 Feuer.
void init_4 (void)
 Lavafontaine.
void init_5 (void)
 Kerze.
void init_6 (void)
 Rauch Dust.
void init_7 (void)
 Animiert, Stationaeres Positionslicht.

Private Attributes

int m_typ
bool m_respawn
int m_maxPartikel
unsigned long m_lifeTime
Vec m_startPosOrg
Vec m_startPos
float m_nearDist
float m_farDist
int m_spriteCount
int m_spriteID [50]

Detailed Description

Ein Partikelsystem beschreibt das Verhalten von Partikeln, die zu diesem System gehoeren.


Constructor & Destructor Documentation

PartikelSystem::PartikelSystem ( )

Konstruktor.

PartikelSystem::~PartikelSystem ( ) [virtual]

Destruktor.

Here is the call graph for this function:


Member Function Documentation

void PartikelSystem::animate ( void  )

Animiert alle Partikel.

Here is the call graph for this function:

Here is the caller graph for this function:

void PartikelSystem::clear ( void  ) [private]

Entfernt alle Partikel aus dem System.

Here is the caller graph for this function:

float PartikelSystem::getRandom ( int  max) [private]

liefert eine Zufallszahl

Parameters:
maxmaximaler Wert der Zufallszahl
Returns:
Zufallszahl

Here is the caller graph for this function:

void PartikelSystem::init ( std::vector< Sprite * > &  spriteList)

Das Partikelsystem wird initialisiert.

Parameters:
spriteListListe mit alle geladenen Sprites

Here is the call graph for this function:

Here is the caller graph for this function:

void PartikelSystem::init_0 ( void  ) [private]

Es wird ein Partikel gerendert. keine Animation, keine Bewegung, keine Lifetime.

Here is the call graph for this function:

Here is the caller graph for this function:

void PartikelSystem::init_1 ( void  ) [private]

Animation: Bewegt sich oszillierend in y-Richtung.

Here is the call graph for this function:

Here is the caller graph for this function:

void PartikelSystem::init_2 ( void  ) [private]

Animation: Schraeger Wurf.

Here is the call graph for this function:

Here is the caller graph for this function:

void PartikelSystem::init_3 ( void  ) [private]

Feuer.

Here is the call graph for this function:

Here is the caller graph for this function:

void PartikelSystem::init_4 ( void  ) [private]

Lavafontaine.

Here is the call graph for this function:

Here is the caller graph for this function:

void PartikelSystem::init_5 ( void  ) [private]

Kerze.

Here is the call graph for this function:

Here is the caller graph for this function:

void PartikelSystem::init_6 ( void  ) [private]

Rauch Dust.

Here is the call graph for this function:

Here is the caller graph for this function:

void PartikelSystem::init_7 ( void  ) [private]

Animiert, Stationaeres Positionslicht.

Here is the call graph for this function:

Here is the caller graph for this function:

void PartikelSystem::load ( DataInputStream dataIn)

Liest das Partikelsystem aus dem Inputstream.

Parameters:
dataInDataInputStream

Here is the call graph for this function:

Here is the caller graph for this function:

void PartikelSystem::project ( float  nearDist,
float  farDist 
)

Projiziert alle Partikel auf die 2D-NearPlane, Windowfenster.

nearDist farDist

Here is the call graph for this function:

Here is the caller graph for this function:

void PartikelSystem::save ( DataOutputStream dataOut)

Serialisiert das PartikelSystem in den Outputstream.

Parameters:
dataOutDataOutputStream
Exceptions:
IOException

Here is the call graph for this function:

Here is the caller graph for this function:

void PartikelSystem::transform ( Matrix matTranslate,
Matrix matRotate 
)

Transformiert alle Partikel.

Parameters:
matTranslateTranslationsmatrix
matRotateRotationsmatrix

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

float PartikelSystem::m_farDist [private]
unsigned long PartikelSystem::m_lifeTime [private]
float PartikelSystem::m_nearDist [private]
bool PartikelSystem::m_respawn [private]
int PartikelSystem::m_spriteID[50] [private]
int PartikelSystem::m_typ [private]

The documentation for this class was generated from the following files: