Bromeon
Public Types | Public Member Functions
thor::Affector Class Reference

Abstract base class for particle affectors. More...

Inheritance diagram for thor::Affector:
Inheritance graph

List of all members.

Public Types

typedef std::tr1::shared_ptr
< Affector
Ptr
 Shared pointer type referring to derivates of Affector.

Public Member Functions

virtual ~Affector ()
 Virtual destructor.
virtual void Affect (Particle &particle, float dt)=0
 Affects particles.

Detailed Description

Abstract base class for particle affectors.

Affectors are classes that influence emitted particles over time.
Inherit from this class and override Affect() to implement custom affectors.


Member Function Documentation

virtual void thor::Affector::Affect ( Particle particle,
float  dt 
) [pure virtual]

Affects particles.

Parameters:
particleThe particle currently being affected.
dtTime interval during which particles are affected.

Implemented in thor::ColorAffector, thor::FadeOutAffector, thor::FadeInAffector, thor::TorqueAffector, and thor::ForceAffector.


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