Pyrogenesis
13997
|
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.
Definition at line 40 of file ParticleEmitterType.cpp.
|
inline |
Definition at line 43 of file ParticleEmitterType.cpp.
|
inlinevirtual |
Definition at line 44 of file ParticleEmitterType.cpp.
|
protectedpure virtual |
Implemented in CParticleVarExpr, CParticleVarCopy, CParticleVarUniform, and CParticleVarConstant.
|
inline |
Computes and returns a new value.
Definition at line 47 of file ParticleEmitterType.cpp.
|
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.
Definition at line 59 of file ParticleEmitterType.cpp.
|
pure virtual |
Returns the maximum value that Evaluate might ever return, for computing bounds.
Implemented in CParticleVarExpr, CParticleVarCopy, CParticleVarUniform, and CParticleVarConstant.
|
pure virtual |
Returns the minimum value that Evaluate might ever return, for computing bounds.
Implemented in CParticleVarExpr, CParticleVarCopy, CParticleVarUniform, and CParticleVarConstant.
|
private |
Definition at line 77 of file ParticleEmitterType.cpp.