Platformer
Platformer
|
This class manages the sounds of our game as a singleton. More...
#include <SoundManager.hpp>
Public Member Functions | |
bool | init () |
Initializes the SoundManager. | |
void | shutdown () |
Shuts down the SoundManager. | |
SoundManager (const SoundManager &)=delete | |
Stop the compiler from generating methods to copy the object. | |
SoundManager & | operator= (const SoundManager &)=delete |
Stop the compiler from generating methods to copy the object. | |
Static Public Member Functions | |
static SoundManager & | instance () |
The singleton instance of the SoundManager. | |
static void | PlaySound (std::shared_ptr< SDLSoundWrapper > sound, int times) |
Plays the given sound the given number of times. More... | |
Private Member Functions | |
SoundManager () | |
Constructs a SoundManager. | |
~SoundManager () | |
Destructs a SoundManager. | |
This class manages the sounds of our game as a singleton.
|
static |
Plays the given sound the given number of times.
sound | The sound to be played |
times | The number of times the sound should be played |