Pyrogenesis  trunk
Public Member Functions | Private Attributes | List of all members
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:
Inheritance graph
[legend]
Collaboration diagram for CParticleVarExpr:
Collaboration graph
[legend]

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...
 

Private Attributes

CStr m_From
 
float m_Mul
 
float m_Max
 

Additional Inherited Members

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

Member Function Documentation

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

Implements IParticleVar.

virtual float CParticleVarExpr::Max ( CParticleEmitterType type)
inlinevirtual

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

Implements IParticleVar.

virtual float CParticleVarExpr::Min ( CParticleEmitterType type)
inlinevirtual

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

Implements IParticleVar.

Member Data Documentation

CStr CParticleVarExpr::m_From
private
float CParticleVarExpr::m_Max
private
float CParticleVarExpr::m_Mul
private

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