SuperTuxKart
Public Member Functions | Private Attributes | List of all members
Explosion Class Reference
Inheritance diagram for Explosion:
Inheritance graph
[legend]

Public Member Functions

 Explosion (const Vec3 &coord, const char *explosion_sound, const char *particle_file)
 Creates an explosion effect. More...
 
 ~Explosion ()
 Destructor stops the explosion sfx from being played and frees its memory.
 
bool updateAndDelete (int ticks) OVERRIDE
 Updates the explosion, called one per time step. More...
 
bool hasEnded ()
 
- Public Member Functions inherited from HitSFX
 HitSFX (const Vec3 &coord, const char *explosion_sound)
 Creates a sound effect when something was hit. More...
 
 ~HitSFX ()
 Destructor stops the explosion sfx from being played and frees its memory.
 
virtual void setLocalPlayerKartHit () OVERRIDE
 Called if this hit effect is for a player kart (in which case it might be played louder than for a non-player kart if split screen is used). More...
 
- Public Member Functions inherited from HitEffect
 HitEffect ()
 Constructor for a hit effect. More...
 
bool getLocalPlayerKartHit () const
 Returns if this effect affects a player kart. More...
 

Private Attributes

int m_remaining_ticks
 
int m_emission_frames
 
ParticleEmitterm_emitter
 
int m_explosion_ticks
 

Constructor & Destructor Documentation

◆ Explosion()

Explosion::Explosion ( const Vec3 coord,
const char *  explosion_sound,
const char *  particle_file 
)

Creates an explosion effect.

Member Function Documentation

◆ updateAndDelete()

bool Explosion::updateAndDelete ( int  ticks)
virtual

Updates the explosion, called one per time step.

Parameters
dtTime step size.
Returns
true If the explosion is finished.

Reimplemented from HitSFX.


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