Class to store all Sounds.
More...
#include <SoundManager.hpp>
Class to store all Sounds.
◆ SoundManager() [1/2]
SoundManager::SoundManager |
( |
std::string const & |
soundsFile | ) |
|
Construct a new Sound Manager object.
- Parameters
-
soundsFile | path to the json containing all the sounds |
◆ SoundManager() [2/2]
SoundManager::SoundManager |
( |
| ) |
|
|
inline |
Construct a new Sound Manager object.
◆ ~SoundManager()
SoundManager::~SoundManager |
( |
| ) |
|
|
inline |
Destroy the Sound Manager object.
◆ at()
ASound SoundManager::at |
( |
std::string const & |
index | ) |
const |
Get the Sound at index sent as param.
- Parameters
-
index | Index of the Sound in map |
- Returns
- Sound Sound from the map
◆ loadSounds()
void SoundManager::loadSounds |
( |
std::string const & |
filepath | ) |
|
Load all Sounds from a config file.
- Parameters
-
filepath | Configuration file path containing data of all Sounds |
The documentation for this class was generated from the following files:
- /home/gurvan-le-letty/delivery/epitech_delivery/semester_5/B-CPP-500/B-CPP-500-PAR-5-1-rtype-martin.vanaud/Client/Source/Managers/SoundManager/SoundManager.hpp
- /home/gurvan-le-letty/delivery/epitech_delivery/semester_5/B-CPP-500/B-CPP-500-PAR-5-1-rtype-martin.vanaud/Client/Source/Managers/SoundManager/SoundManager.cpp