|
| Explosion (const Vec3 &coord, const char *explosion_sound, const char *particle_file) |
| Creates an explosion effect.
|
|
| ~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.
|
|
bool | hasEnded () |
|
| HitSFX (const Vec3 &coord, const char *explosion_sound) |
| Creates a sound effect when something was hit.
|
|
| ~HitSFX () |
| Destructor stops the explosion sfx from being played and frees its memory.
|
|
virtual bool | updateAndDelete (int ticks) OVERRIDE |
| Updates the hit sfx, called one per time step.
|
|
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).
|
|
| HitEffect () |
| Constructor for a hit effect.
|
|
virtual bool | updateAndDelete (int ticks)=0 |
| Updates a hit effect.
|
|
virtual void | setLocalPlayerKartHit () |
| Sets that this SFX affects a player kart, which can be used to make certain sfx louder/less loud.
|
|
bool | getLocalPlayerKartHit () const |
| Returns if this effect affects a player kart.
|
|
|
int | m_remaining_ticks |
|
int | m_emission_frames |
|
ParticleEmitter * | m_emitter |
|
int | m_explosion_ticks |
|
◆ updateAndDelete()
bool Explosion::updateAndDelete |
( |
int |
ticks | ) |
|
|
virtual |
Updates the explosion, called one per time step.
- Parameters
-
- Returns
- true If the explosion is finished.
Reimplemented from HitSFX.
The documentation for this class was generated from the following files: