Abstract base class for particle affectors. More...
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, sf::Time dt)=0 |
Affects particles. |
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.
virtual void thor::Affector::Affect | ( | Particle & | particle, |
sf::Time | dt | ||
) | [pure virtual] |
Affects particles.
particle | The particle currently being affected. |
dt | Time interval during which particles are affected. |
Implemented in thor::ColorAffector, thor::FadeOutAffector, thor::FadeInAffector, thor::ScaleAffector, thor::TorqueAffector, and thor::ForceAffector.