Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
Loading...
Searching...
No Matches
soundtable.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <boost/optional.hpp>
4#include <unordered_map>
5#include <vector>
6
13
14class Player;
15
17public:
18 SoundTable();
19
22 std::unordered_map<EntityID, std::vector<SoundCommand>> getCommandsPerPlayer(const std::vector<Object*>& players);
23 void tickSounds();
24
25 const std::unordered_map<SoundID, SoundSource>& data() const;
26
27private:
28 std::unordered_map<SoundID, SoundSource> map;
29 std::vector<SoundCommand> current_commands;
30 std::vector<SoundID> static_sources;
31
32 SoundID next_id;
33};
Definition: player.hpp:9
Definition: soundtable.hpp:16
SoundTable()
Definition: soundtable.cpp:11
void addStaticSoundSource(const SoundSource &source)
Definition: soundtable.cpp:60
std::unordered_map< EntityID, std::vector< SoundCommand > > getCommandsPerPlayer(const std::vector< Object * > &players)
Definition: soundtable.cpp:15
const std::unordered_map< SoundID, SoundSource > & data() const
Definition: soundtable.cpp:72
void addNewSoundSource(const SoundSource &source)
Definition: soundtable.cpp:66
void tickSounds()
Definition: soundtable.cpp:42
GLsizei GLsizei GLchar * source
Definition: glad.h:1897
unsigned long long SoundID
Definition: soundcommand.hpp:6
Definition: soundsource.hpp:10