Class: ege::Particule


Synopsis:

+                Particule         (ege::ParticuleEngine & _particuleEngine,
const char * _particuleType);
+ ~Particule (void);
+ void init (void);
+ void UnInit (void);
+ void update (float _delta);
+ void draw (const ege::Camera & _camera);
+ bool needRemove (void);
+ const char * getParticuleType (void);
+ void onEnd (void);

Description:

/** * @brief The particule class is an element with no control, when it will be created, * it does not have any control, for example smoke or reactor generation ... * or explosion particule ... */

Detail:

ege::Particule ()

Particule(ege::ParticuleEngine & _particuleEngine,
          const char * _particuleType);

Constructor.


ege::~Particule ()

~Particule(void);

Destructor.


init ()

void init(void);

init the particule


UnInit ()

void UnInit(void);

Un-init the particule


update ()

void update(float _delta);

update the paticule properties


draw ()

void draw(const ege::Camera & _camera);

draw the current particule


needRemove ()

bool needRemove(void);

Check if the element might be removed


getParticuleType ()

const char * getParticuleType(void);

get the type of the particule


onEnd ()

void onEnd(void);

When the particule arrive to his end of life, this function is called.