Bomberman Multiplayer
Authoritative multiplayer networking layer for Bomberman.
Loading...
Searching...
No Matches
Sound.h
1#ifndef _BOMBERMAN_ENTITIES_SOUND_H_
2#define _BOMBERMAN_ENTITIES_SOUND_H_
3
4#include <SDL_mixer.h>
5#include <memory>
6
7namespace bomberman
8{
13 class Sound
14 {
15 public:
20 Sound(std::shared_ptr<Mix_Chunk> sound);
25 void play();
26
27 private:
28 std::shared_ptr<Mix_Chunk> sound = nullptr; // smart pointer to SDL2 sound
29 };
30} // namespace bomberman
31
32#endif // _BOMBERMAN_ENTITIES_SOUND_H_
Base class for sound.
Definition Sound.h:14
void play()
Start playing sound.
Definition Sound.cpp:12