Otclient  14/8/2020
ParticleAffector Class Reference

#include <particleaffector.h>

Inheritance diagram for ParticleAffector:
Collaboration diagram for ParticleAffector:

Public Member Functions

 ParticleAffector ()
 
void update (float elapsedTime)
 
virtual void load (const OTMLNodePtr &node)
 
virtual void updateParticle (const ParticlePtr &, float)
 
bool hasFinished ()
 
- Public Member Functions inherited from stdext::shared_object
 shared_object ()
 
virtual ~shared_object ()
 
void add_ref ()
 
void dec_ref ()
 
refcount_t ref_count ()
 
template<typename T >
stdext::shared_object_ptr< T > static_self_cast ()
 
template<typename T >
stdext::shared_object_ptr< T > dynamic_self_cast ()
 
template<typename T >
stdext::shared_object_ptr< T > const_self_cast ()
 

Protected Attributes

bool m_finished
 
bool m_active
 
float m_delay
 
float m_duration
 
float m_elapsedTime
 

Detailed Description

Definition at line 29 of file particleaffector.h.

Constructor & Destructor Documentation

◆ ParticleAffector()

ParticleAffector::ParticleAffector ( )

Definition at line 27 of file particleaffector.cpp.

Member Function Documentation

◆ hasFinished()

bool ParticleAffector::hasFinished ( )
inline

Definition at line 38 of file particleaffector.h.

◆ load()

void ParticleAffector::load ( const OTMLNodePtr node)
virtual

Reimplemented in AttractionAffector, and GravityAffector.

Definition at line 49 of file particleaffector.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update()

void ParticleAffector::update ( float  elapsedTime)

Definition at line 36 of file particleaffector.cpp.

◆ updateParticle()

virtual void ParticleAffector::updateParticle ( const ParticlePtr ,
float   
)
inlinevirtual

Reimplemented in AttractionAffector, and GravityAffector.

Definition at line 36 of file particleaffector.h.

Member Data Documentation

◆ m_active

bool ParticleAffector::m_active
protected

Definition at line 41 of file particleaffector.h.

◆ m_delay

float ParticleAffector::m_delay
protected

Definition at line 42 of file particleaffector.h.

◆ m_duration

float ParticleAffector::m_duration
protected

Definition at line 42 of file particleaffector.h.

◆ m_elapsedTime

float ParticleAffector::m_elapsedTime
protected

Definition at line 43 of file particleaffector.h.

◆ m_finished

bool ParticleAffector::m_finished
protected

Definition at line 41 of file particleaffector.h.


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