List of all members | Public Member Functions
thor::ScaleAffector Class Reference

Scales particles over time. More...

Public Member Functions

 ScaleAffector (sf::Vector2f scaleFactor)
 Constructor. More...
 
void operator() (Particle &particle, sf::Time dt)
 Affects particles. More...
 

Detailed Description

Scales particles over time.

Constructor & Destructor Documentation

thor::ScaleAffector::ScaleAffector ( sf::Vector2f  scaleFactor)
explicit

Constructor.

Parameters
scaleFactorFactor by which particles are scaled every second.

Member Function Documentation

void thor::ScaleAffector::operator() ( Particle particle,
sf::Time  dt 
)

Affects particles.

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

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