Sly Engine
ParticleEmitter Class Reference

#include <ParticleEmitter.h>

Inheritance diagram for ParticleEmitter:
Inheritance graph
Collaboration diagram for ParticleEmitter:
Collaboration graph

Public Types

typedef std::list< Burst * >::iterator ParticleEmitterStorageRef
 

Public Member Functions

 ParticleEmitter ()=default
 
 ParticleEmitter (const ParticleEmitter &)=delete
 
 ParticleEmitter (ParticleEmitter &&)=delete
 
ParticleEmitteroperator= (const ParticleEmitter &)=delete
 
ParticleEmitteroperator= (ParticleEmitter &&)=delete
 
 ~ParticleEmitter ()
 
 ParticleEmitter (ParticleEffect *pe, const Vect &pos, const Matrix &rot)
 
void Initialize (ParticleEffect *pe, const Vect &pos, const Matrix &rot)
 
void Enter ()
 
void NewBurst ()
 
void Exit ()
 
virtual void Alarm0 () override
 
virtual void Alarm1 () override
 
virtual void Draw () override
 Pure virtual function draw. Derived objects must override. More...
 
ParticleEffectGetParticleEffect ()
 
ParticleEmitterFactory::StorageRef GetEmitterRef ()
 
void SetEmitterRef (ParticleEmitterFactory::StorageRef myRef)
 
- Public Member Functions inherited from Alarmable
 Alarmable ()
 Default constructor. More...
 
 Alarmable (const Alarmable &)=delete
 Copy constructor. More...
 
 Alarmable (Alarmable &&)=delete
 Move constructor. More...
 
Alarmableoperator= (const Alarmable &)=delete
 Assignment operator. More...
 
Alarmableoperator= (Alarmable &&)=delete
 Move assignment operator. More...
 
virtual ~Alarmable ()
 Deconstructor. More...
 
- Public Member Functions inherited from Drawable
 Drawable ()
 Default constructor. More...
 
 Drawable (const Drawable &)=delete
 Copy constructor. More...
 
 Drawable (Drawable &&)=delete
 Move constructor. More...
 
Drawableoperator= (const Drawable &)=delete
 Assignment operator. More...
 
Drawableoperator= (Drawable &&)=delete
 Move assignment operator. More...
 
virtual ~Drawable ()
 Deconstructor. More...
 

Private Member Functions

bool CheckExpiration (Burst *burst)
 

Private Attributes

std::list< Burst * > BurstCollection
 
ParticleEmitterFactory::StorageRef myStorageRef
 
ParticleEffectpParticleEffect
 
BurstTypetype
 
Matrix world
 
Matrix rot
 
Vect pos
 
float EmitterLife
 
float BurstCount
 
float BurstFrequency
 
bool active
 

Additional Inherited Members

- Protected Member Functions inherited from Alarmable
void SubmitAlarmRegistration (int id, float t)
 Submit alarm registration. More...
 
void SubmitAlarmRegistration (AlarmableManager::ALARM_ID id, float t)
 Submit alarm registration. More...
 
void SubmitAlarmDeregistration (int id)
 Submit alarm deregistration. More...
 
void SubmitAlarmDeregistration (AlarmableManager::ALARM_ID id)
 Submit alarm deregistration. More...
 
- Protected Member Functions inherited from Drawable
void SubmitDrawRegistration ()
 Submit draw registration. More...
 
void SubmitDrawDeregistration ()
 Submit draw deregistration. More...
 

Member Typedef Documentation

◆ ParticleEmitterStorageRef

typedef std::list<Burst*>::iterator ParticleEmitter::ParticleEmitterStorageRef

Constructor & Destructor Documentation

◆ ParticleEmitter() [1/4]

ParticleEmitter::ParticleEmitter ( )
default

◆ ParticleEmitter() [2/4]

ParticleEmitter::ParticleEmitter ( const ParticleEmitter )
delete

◆ ParticleEmitter() [3/4]

ParticleEmitter::ParticleEmitter ( ParticleEmitter &&  )
delete

◆ ~ParticleEmitter()

ParticleEmitter::~ParticleEmitter ( )

◆ ParticleEmitter() [4/4]

ParticleEmitter::ParticleEmitter ( ParticleEffect pe,
const Vect &  pos,
const Matrix &  rot 
)
Here is the call graph for this function:

Member Function Documentation

◆ Alarm0()

void ParticleEmitter::Alarm0 ( )
overridevirtual

Reimplemented from Alarmable.

Here is the call graph for this function:

◆ Alarm1()

void ParticleEmitter::Alarm1 ( )
overridevirtual

Reimplemented from Alarmable.

Here is the call graph for this function:

◆ CheckExpiration()

bool ParticleEmitter::CheckExpiration ( Burst burst)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Draw()

void ParticleEmitter::Draw ( )
overridevirtual

Pure virtual function draw. Derived objects must override.

Implements Drawable.

Here is the call graph for this function:

◆ Enter()

void ParticleEmitter::Enter ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Exit()

void ParticleEmitter::Exit ( )
Here is the call graph for this function:

◆ GetEmitterRef()

ParticleEmitterFactory::StorageRef ParticleEmitter::GetEmitterRef ( )
Here is the caller graph for this function:

◆ GetParticleEffect()

ParticleEffect * ParticleEmitter::GetParticleEffect ( )

◆ Initialize()

void ParticleEmitter::Initialize ( ParticleEffect pe,
const Vect &  pos,
const Matrix &  rot 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ NewBurst()

void ParticleEmitter::NewBurst ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=() [1/2]

ParticleEmitter& ParticleEmitter::operator= ( const ParticleEmitter )
delete

◆ operator=() [2/2]

ParticleEmitter& ParticleEmitter::operator= ( ParticleEmitter &&  )
delete

◆ SetEmitterRef()

void ParticleEmitter::SetEmitterRef ( ParticleEmitterFactory::StorageRef  myRef)
Here is the caller graph for this function:

Member Data Documentation

◆ active

bool ParticleEmitter::active
private

◆ BurstCollection

std::list<Burst*> ParticleEmitter::BurstCollection
private

◆ BurstCount

float ParticleEmitter::BurstCount
private

◆ BurstFrequency

float ParticleEmitter::BurstFrequency
private

◆ EmitterLife

float ParticleEmitter::EmitterLife
private

◆ myStorageRef

ParticleEmitterFactory::StorageRef ParticleEmitter::myStorageRef
private

◆ pos

Vect ParticleEmitter::pos
private

◆ pParticleEffect

ParticleEffect* ParticleEmitter::pParticleEffect
private

◆ rot

Matrix ParticleEmitter::rot
private

◆ type

BurstType* ParticleEmitter::type
private

◆ world

Matrix ParticleEmitter::world
private

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