Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CParticleVarUniform Class Reference

Particle variable that returns a uniformly-distributed random value. More...

Inheritance diagram for CParticleVarUniform:
Collaboration diagram for CParticleVarUniform:

Public Member Functions

 CParticleVarUniform (float min, float max)
 
virtual float Compute (CParticleEmitterType &type, CParticleEmitter &emitter)
 
virtual float Min (CParticleEmitterType &type)
 Returns the minimum value that Evaluate might ever return, for computing bounds. More...
 
virtual float Max (CParticleEmitterType &type)
 Returns the maximum value that Evaluate might ever return, for computing bounds. More...
 
- Public Member Functions inherited from IParticleVar
 IParticleVar ()
 
virtual ~IParticleVar ()
 
float Evaluate (CParticleEmitter &emitter)
 Computes and returns a new value. More...
 
float LastValue ()
 Returns the last value that Evaluate returned. More...
 
virtual float Min (CParticleEmitterType &type)=0
 Returns the minimum value that Evaluate might ever return, for computing bounds. More...
 
virtual float Max (CParticleEmitterType &type)=0
 Returns the maximum value that Evaluate might ever return, for computing bounds. More...
 

Private Attributes

float m_Min
 
float m_Max
 

Additional Inherited Members

virtual float Compute (CParticleEmitterType &type, CParticleEmitter &emitter)=0
 

Detailed Description

Particle variable that returns a uniformly-distributed random value.

Constructor & Destructor Documentation

◆ CParticleVarUniform()

CParticleVarUniform::CParticleVarUniform ( float  min,
float  max 
)
inline

Member Function Documentation

◆ Compute()

virtual float CParticleVarUniform::Compute ( CParticleEmitterType type,
CParticleEmitter emitter 
)
inlinevirtual

Implements IParticleVar.

◆ Max()

virtual float CParticleVarUniform::Max ( CParticleEmitterType type)
inlinevirtual

Returns the maximum value that Evaluate might ever return, for computing bounds.

Implements IParticleVar.

◆ Min()

virtual float CParticleVarUniform::Min ( CParticleEmitterType type)
inlinevirtual

Returns the minimum value that Evaluate might ever return, for computing bounds.

Implements IParticleVar.

Member Data Documentation

◆ m_Max

float CParticleVarUniform::m_Max
private

◆ m_Min

float CParticleVarUniform::m_Min
private

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