Bromeon
Public Types | Static Public Member Functions | Public Member Functions
thor::ScaleAffector Class Reference

Scales particles over time. More...

Inheritance diagram for thor::ScaleAffector:
Inheritance graph

List of all members.

Public Types

typedef std::tr1::shared_ptr
< ScaleAffector
Ptr
 Shared pointer type referring to ScaleAffector objects.

Static Public Member Functions

static Ptr Create (sf::Vector2f scaleFactor)
 Creates an affector that continuously scales particles by a given factor.

Public Member Functions

 ScaleAffector (sf::Vector2f scaleFactor)
 Constructor.
virtual void Affect (Particle &particle, sf::Time dt)
 Affects particles.
void SetScaleFactor (sf::Vector2f scaleFactor)
 Sets the factor by which particles are scaled every second.
sf::Vector2f GetScaleFactor () const
 Returns the factor by which particles are scaled every second.

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

virtual void thor::ScaleAffector::Affect ( Particle particle,
sf::Time  dt 
) [virtual]

Affects particles.

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

Implements thor::Affector.

static Ptr thor::ScaleAffector::Create ( sf::Vector2f  scaleFactor) [static]

Creates an affector that continuously scales particles by a given factor.

Parameters:
scaleFactorFactor by which particles are scaled every second.


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