SuperTuxKart
|
A small interface for effects to be used when a kart is hit. More...
#include <hit_effect.hpp>
Public Member Functions | |
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. | |
Private Attributes | |
bool | m_local_player_kart_hit |
True if this effect affected a player kart. | |
A small interface for effects to be used when a kart is hit.
That includes a sound effect only, or a graphical effect (like an explosion).
|
inlinevirtual |
Sets that this SFX affects a player kart, which can be used to make certain sfx louder/less loud.
Default is that the affect does not affect a player kart.
Reimplemented in HitSFX.
|
pure virtual |
|
private |
True if this effect affected a player kart.
Used to play certain SFX less loud if only an AI is hit.