19#ifndef HEADER_HIT_SFX_HPP
20#define HEADER_HIT_SFX_HPP
22#include "graphics/hit_effect.hpp"
23#include "utils/cpp2011.hpp"
37 HitSFX(
const Vec3& coord,
const char* explosion_sound);
A small interface for effects to be used when a kart is hit.
Definition: hit_effect.hpp:33
Definition: hit_sfx.hpp:31
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 no...
Definition: hit_sfx.cpp:52
~HitSFX()
Destructor stops the explosion sfx from being played and frees its memory.
Definition: hit_sfx.cpp:42
SFXBase * m_sfx
The sfx to play.
Definition: hit_sfx.hpp:34
virtual bool updateAndDelete(int ticks) OVERRIDE
Updates the hit sfx, called one per time step.
Definition: hit_sfx.cpp:64
The base class for sound effects.
Definition: sfx_base.hpp:43
A wrapper around bullets btVector3 to include conventient conversion functions (e....
Definition: vec3.hpp:35