Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
Interface for particle state variables, which get evaluated for each newly constructed particle. More...
Public Member Functions | |
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... | |
Protected Member Functions | |
virtual float | Compute (CParticleEmitterType &type, CParticleEmitter &emitter)=0 |
Private Attributes | |
float | m_LastValue |
Interface for particle state variables, which get evaluated for each newly constructed particle.
|
inline |
|
inlinevirtual |
|
protectedpure virtual |
Implemented in CParticleVarConstant, CParticleVarUniform, CParticleVarCopy, and CParticleVarExpr.
|
inline |
Computes and returns a new value.
|
inline |
Returns the last value that Evaluate returned.
This is used for variables that depend on other variables (which is kind of fragile since it's very order-dependent), so they don't get re-randomised and don't have a danger of infinite recursion.
|
pure virtual |
Returns the maximum value that Evaluate might ever return, for computing bounds.
Implemented in CParticleVarConstant, CParticleVarUniform, CParticleVarCopy, and CParticleVarExpr.
|
pure virtual |
Returns the minimum value that Evaluate might ever return, for computing bounds.
Implemented in CParticleVarConstant, CParticleVarUniform, CParticleVarCopy, and CParticleVarExpr.
|
private |