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
7
namespace
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_
bomberman::Sound
Base class for sound.
Definition
Sound.h:14
bomberman::Sound::play
void play()
Start playing sound.
Definition
Sound.cpp:12
Entities
Sound.h
Nicolas Martin
Generated by
1.9.8