Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CParticleVarCopy Class Reference

Particle variable that returns the same value as some other variable (assuming that variable was evaluated before this one). More...

Inheritance diagram for CParticleVarCopy:
Collaboration diagram for CParticleVarCopy:

Public Member Functions

 CParticleVarCopy (int from)
 
float Compute (const CParticleEmitterType &type, const CParticleEmitter &) override
 
float Min (const CParticleEmitterType &type) override
 Returns the minimum value that Evaluate might ever return, for computing bounds. More...
 
float Max (const CParticleEmitterType &type) override
 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 (const CParticleEmitterType &type)=0
 Returns the minimum value that Evaluate might ever return, for computing bounds. More...
 
virtual float Max (const CParticleEmitterType &type)=0
 Returns the maximum value that Evaluate might ever return, for computing bounds. More...
 

Private Attributes

int m_From
 

Additional Inherited Members

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

Detailed Description

Particle variable that returns the same value as some other variable (assuming that variable was evaluated before this one).

Constructor & Destructor Documentation

◆ CParticleVarCopy()

CParticleVarCopy::CParticleVarCopy ( int  from)
inline

Member Function Documentation

◆ Compute()

float CParticleVarCopy::Compute ( const CParticleEmitterType &  type,
const CParticleEmitter &   
)
inlineoverridevirtual

Implements IParticleVar.

◆ Max()

float CParticleVarCopy::Max ( const CParticleEmitterType &  type)
inlineoverridevirtual

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

Implements IParticleVar.

◆ Min()

float CParticleVarCopy::Min ( const CParticleEmitterType &  type)
inlineoverridevirtual

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

Implements IParticleVar.

Member Data Documentation

◆ m_From

int CParticleVarCopy::m_From
private

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