#include <explosion.h>

Public Member Functions | |
| Explosion (SbColor color) | |
| Constructor. | |
| virtual | ~Explosion () |
| Destructor. | |
| virtual Explosion * | clone () 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 &) | |
| Explosion & | operator= (const Explosion &) |
Private Attributes | |
| SoTranslation * | _position |
| Explosion position. | |
Classes that inherit from this class should only override timeUpdate().
Reference object (cannot be copied).
| Explosion::Explosion | ( | const Explosion & | ) | [private] |
| Explosion::Explosion | ( | SbColor | color | ) |
| virtual Explosion::~Explosion | ( | ) | [virtual] |
Destructor.
| 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.
| [in] | explodeDone | Object on which the "action performed" method should be called when the explosion is completed. |
| void Explosion::setPosition | ( | SbVec3f | position | ) | [inline] |
SoTranslation* Explosion::_position [private] |
Templates::CallableBack<Explosion>* Explosion::_explodeDone [protected] |
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?
1.5.6