ege::ParticuleSimple Class Reference

#include <ParticuleSimple.hpp>

Inheritance diagram for ege::ParticuleSimple:
ege::Particule

Public Member Functions

 ParticuleSimple (ege::ParticuleEngine *_particuleEngine, const char *_particuleType)
 
virtual ~ParticuleSimple ()
 
virtual void update (float _delta)
 
virtual bool needRemove ()
 
virtual void init ()
 
virtual void setLife (float _life)
 
virtual void setLevel (float _level)
 
virtual void setPosition (const vec3 &_pos)
 
virtual void setAngle (float _angle)
 
virtual void setMoveSpeed (const vec3 &_speed)
 
virtual void setScale (const vec3 &_scale)
 
virtual void setScaleExpend (const vec3 &_scaleExpand)
 
- Public Member Functions inherited from ege::Particule
 Particule (ege::ParticuleEngine *_particuleEngine, const char *_particuleType=nullptr)
 
virtual ~Particule ()
 
virtual void UnInit ()
 
virtual void draw (const ege::Camera &_camera)
 
const char * getParticuleType ()
 
virtual void onEnd ()
 

Protected Attributes

float m_lifeFull
 
float m_life
 
float m_level
 
vec3 m_pos
 
float m_angle
 
vec3 m_speed
 
vec3 m_scale
 
vec3 m_scaleExpand
 
- Protected Attributes inherited from ege::Particule
ege::ParticuleEnginem_particuleEngine
 
const char * m_particuleType
 

Detailed Description

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 ...

Constructor & Destructor Documentation

§ ParticuleSimple()

ege::ParticuleSimple::ParticuleSimple ( ege::ParticuleEngine _particuleEngine,
const char *  _particuleType 
)

Constructor.

Parameters
[in]_nameName of the particule.
[in]_standaloneThe particule are created and have there own life (no dynamic control)

§ ~ParticuleSimple()

virtual ege::ParticuleSimple::~ParticuleSimple ( )
inlinevirtual

Destructor.

Member Function Documentation

§ init()

virtual void ege::ParticuleSimple::init ( )
virtual

init the particule

Reimplemented from ege::Particule.

§ needRemove()

virtual bool ege::ParticuleSimple::needRemove ( )
virtual

Check if the element might be removed.

Returns
true : The element might be removed
false : The element might be keeped

Reimplemented from ege::Particule.

§ update()

virtual void ege::ParticuleSimple::update ( float  _delta)
virtual

update the paticule properties

Parameters
[in]_deltaDelta time from the previous call

Reimplemented from ege::Particule.


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