1#ifndef NANOMMO_CLIENT_SOUNDBOARD_H_
2#define NANOMMO_CLIENT_SOUNDBOARD_H_
29 std::optional<Samples> departure = std::nullopt);
38 void Skill(uint32_t skill,
bool target,
Heard heard);
46 using Takes = std::vector<std::unique_ptr<Clip>>;
48 void Play(
const Takes& takes,
Variety& variety,
Heard heard);
51 std::map<Ground, Takes> steps_;
52 std::map<Ground, Variety> step_varieties_;
54 std::map<std::pair<uint32_t, bool>, Takes> skills_;
56 std::unique_ptr<Clip> departure_;
57 std::vector<std::unique_ptr<Clip>> arrivals_;
static constexpr int kStepTakes
Takes of each step, and of each skill.
Soundboard(const AudioDevice &device, const SkillTable &skills, std::optional< Samples > departure=std::nullopt)
void set_volume(float volume)
How loud the sounds are, from the settings, from 0 to 1.
static constexpr int kSkillTakes
void Arrival(int land)
Into the land, by its place in the lands.
void Skill(uint32_t skill, bool target, Heard heard)
void Step(Ground ground, Heard heard)
Ground
What a foot comes down on, which is how the step sounds.