FadingExplosion Class Reference

Fading explosion effect. More...

#include <fading_explosion.h>

Inheritance diagram for FadingExplosion:

Explosion Templates::Observer< Camera > TimeUpdateable GraphicalNode

List of all members.

Public Member Functions

 FadingExplosion (SbColor color, Camera *camera)
 Constructor.
virtual ~FadingExplosion ()
 Destructor.
FadingExplosionclone () const
 Returns a copy of itself.
virtual void timeUpdate (float dt)
 Timer value change event occured.
virtual void update (Camera *subject)
 Observable object changed its state.

Static Public Attributes

static const float FADEOFF_TIME
 The time for which the bubble fades off.

Private Member Functions

 FadingExplosion (const FadingExplosion &)
FadingExplosionoperator= (const FadingExplosion &)

Private Attributes

float _actualTime
 Actual time during the explosion.
Camera_camera
 Camera.
SoMaterial * _material
 The material of the fading bubble.


Detailed Description

Fading explosion effect.

Reference object (cannot be copied).


Constructor & Destructor Documentation

FadingExplosion::FadingExplosion ( const FadingExplosion  )  [private]

FadingExplosion::FadingExplosion ( SbColor  color,
Camera camera 
)

Constructor.

Parameters:
[in] color Explosion color.
[in] camera Main camera.
Camera is needed bacuase this implementation needs it to adjust the explosion image.

virtual FadingExplosion::~FadingExplosion (  )  [virtual]

Destructor.


Member Function Documentation

FadingExplosion& FadingExplosion::operator= ( const FadingExplosion  )  [private]

FadingExplosion* FadingExplosion::clone (  )  const [virtual]

Returns a copy of itself.

Memory is allocated on the heap, so it has to be deleted manually.

Implements Explosion.

virtual void FadingExplosion::timeUpdate ( float  dt  )  [virtual]

Timer value change event occured.

This method is called on each timer value change.

Parameters:
[in] dt Time difference between the last call (delta).

Implements TimeUpdateable.

virtual void FadingExplosion::update ( Camera subject  )  [virtual]

Observable object changed its state.

Parameters:
[in] subject Observable object.
This method is a reaction to the observable object (arg) state change.

Implements Templates::Observer< Camera >.


Member Data Documentation

Actual time during the explosion.

SoMaterial* FadingExplosion::_material [private]

The material of the fading bubble.

const float FadingExplosion::FADEOFF_TIME [static]

The time for which the bubble fades off.


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

Generated on Sat Dec 20 19:21:24 2008 for PGR2008 by  doxygen 1.5.6