#include <fading_explosion.h>
Public Member Functions | |
FadingExplosion (SbColor color, Camera *camera) | |
Constructor. | |
virtual | ~FadingExplosion () |
Destructor. | |
FadingExplosion * | clone () 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 &) | |
FadingExplosion & | operator= (const FadingExplosion &) |
Private Attributes | |
float | _actualTime |
Actual time during the explosion. | |
Camera * | _camera |
Camera. | |
SoMaterial * | _material |
The material of the fading bubble. |
Reference object (cannot be copied).
FadingExplosion::FadingExplosion | ( | const FadingExplosion & | ) | [private] |
FadingExplosion::FadingExplosion | ( | SbColor | color, | |
Camera * | camera | |||
) |
virtual FadingExplosion::~FadingExplosion | ( | ) | [virtual] |
Destructor.
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.
[in] | dt | Time difference between the last call (delta). |
Implements TimeUpdateable.
virtual void FadingExplosion::update | ( | Camera * | subject | ) | [virtual] |
Observable object changed its state.
[in] | subject | Observable object. |
Implements Templates::Observer< Camera >.
float FadingExplosion::_actualTime [private] |
Actual time during the explosion.
Camera* FadingExplosion::_camera [private] |
SoMaterial* FadingExplosion::_material [private] |
The material of the fading bubble.
const float FadingExplosion::FADEOFF_TIME [static] |
The time for which the bubble fades off.