Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CParticleVarExpr Class Reference

A terrible ad-hoc attempt at handling some particular variable calculation, which really needs to be cleaned up and generalised. More...

Inheritance diagram for CParticleVarExpr:
Collaboration diagram for CParticleVarExpr:

Public Member Functions

 CParticleVarExpr (const CStr &from, float mul, 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

CStr m_From
 
float m_Mul
 
float m_Max
 

Additional Inherited Members

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

Detailed Description

A terrible ad-hoc attempt at handling some particular variable calculation, which really needs to be cleaned up and generalised.

Constructor & Destructor Documentation

◆ CParticleVarExpr()

CParticleVarExpr::CParticleVarExpr ( const CStr &  from,
float  mul,
float  max 
)
inline

Member Function Documentation

◆ Compute()

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

Implements IParticleVar.

◆ Max()

virtual float CParticleVarExpr::Max ( CParticleEmitterType type)
inlinevirtual

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

Implements IParticleVar.

◆ Min()

virtual float CParticleVarExpr::Min ( CParticleEmitterType type)
inlinevirtual

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

Implements IParticleVar.

Member Data Documentation

◆ m_From

CStr CParticleVarExpr::m_From
private

◆ m_Max

float CParticleVarExpr::m_Max
private

◆ m_Mul

float CParticleVarExpr::m_Mul
private

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