TEffect Class Reference

#include <Effect.h>

Inheritance diagram for TEffect:

TExplosion TFire TPetrolFire TSmoke TSmokeVol TParticleExplosion TMissileSmoke TParticleSmoke List of all members.

Detailed Description

Effect class.

This is a virtual class, meant to be a parent to all visual effects.


Public Member Functions

 TEffect ()
 Default constructor.
virtual ~TEffect ()
 Destructor..
virtual void TimeTick (const double &time, const double &delta)
 Called repeatedly.
virtual bool IsExistent ()
 Determines, whether the effect lives, or passed away.
virtual void Render (TCamera *Camera)=0
 Pure virtual Render function.


Member Function Documentation

virtual bool TEffect::IsExistent  )  [inline, virtual]
 

Determines, whether the effect lives, or passed away.

Main game object uses this to see the moment when the effect completed it's task and should be removed from the game.

Return values:
true effect is alive and should remain in the game (default behaviour - effects are eternal)
false effect died and should be removed

Reimplemented in TParticleExplosion, TFire, TPetrolFire, TMissileSmoke, TParticleSmoke, and TSmokeVol.

virtual void TEffect::TimeTick const double &  time,
const double &  delta
[inline, virtual]
 

Called repeatedly.

This function is called repeatedly.

  • Updates the effect's position and maybe shape.
    Parameters:
    time current time in seconds from the program start
    delta time in seconds from the last TimeTick call

Reimplemented in TParticleExplosion, TFire, TPetrolFire, TMissileSmoke, TParticleSmoke, and TSmokeVol.


The documentation for this class was generated from the following file:
Viewable With Any Browser   Valid HTML 4.01!   Generated on Fri Apr 14 08:04:26 2006 for TankGame by doxygen 1.4.6-NO