Explosion Class Reference

Bubble explosion effect. More...

#include <explosion.h>

Inheritance diagram for Explosion:

TimeUpdateable GraphicalNode FadingExplosion FireExplosion

List of all members.

Public Member Functions

 Explosion (SbColor color)
 Constructor.
virtual ~Explosion ()
 Destructor.
virtual Explosionclone () const =0
 Returns a copy of itself.
void explode (Templates::CallableBack< Explosion > *explodeDone)
 Shows a graphical explosion effect of a bubble.
void setPosition (SbVec3f position)
 Sets explosion position.

Protected Attributes

Templates::CallableBack
< Explosion > * 
_explodeDone
const SbColor _color
 Explosion colour.
bool _isActive
 Is the explosion active?

Private Member Functions

 Explosion (const Explosion &)
Explosionoperator= (const Explosion &)

Private Attributes

SoTranslation * _position
 Explosion position.


Detailed Description

Bubble explosion effect.

Classes that inherit from this class should only override timeUpdate().

Reference object (cannot be copied).


Constructor & Destructor Documentation

Explosion::Explosion ( const Explosion  )  [private]

Explosion::Explosion ( SbColor  color  ) 

Constructor.

Parameters:
[in] color Explosion color.

virtual Explosion::~Explosion (  )  [virtual]

Destructor.


Member Function Documentation

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

virtual Explosion* Explosion::clone (  )  const [pure virtual]

Returns a copy of itself.

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

Implemented in FadingExplosion, and FireExplosion.

void Explosion::explode ( Templates::CallableBack< Explosion > *  explodeDone  ) 

Shows a graphical explosion effect of a bubble.

Parameters:
[in] explodeDone Object on which the "action performed" method should be called when the explosion is completed.
Effect will be "displayed" on the object root node.

void Explosion::setPosition ( SbVec3f  position  )  [inline]

Sets explosion position.

Parameters:
position Explosion position.
This method should be called before explode() to achieve proper explosion position.

References _position.


Member Data Documentation

SoTranslation* Explosion::_position [private]

Explosion position.

Referenced by setPosition().

Object on which the "action performed" method should be called when the explosion is completed.

const SbColor Explosion::_color [protected]

Explosion colour.

bool Explosion::_isActive [protected]

Is the explosion active?


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