|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <soundboard.h>
Public Member Functions | |
| 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. | |
| void | Step (Ground ground, Heard heard) |
| void | Skill (uint32_t skill, bool target, Heard heard) |
| void | Departure () |
| void | Arrival (int land) |
| Into the land, by its place in the lands. | |
Static Public Attributes | |
| static constexpr int | kStepTakes = 8 |
| Takes of each step, and of each skill. | |
| static constexpr int | kSkillTakes = 3 |
The game's sounds, each made in a few takes as the game starts, and played a take at a time.
Definition at line 20 of file soundboard.h.
| nanommo::Soundboard::Soundboard | ( | const AudioDevice & | device, |
| const SkillTable & | skills, | ||
| std::optional< Samples > | departure = std::nullopt ) |
With a recording to go through a gate with, in place of the sound made from numbers, if there's one.
Definition at line 23 of file soundboard.cc.
| void nanommo::Soundboard::Arrival | ( | int | land | ) |
Into the land, by its place in the lands.
Definition at line 86 of file soundboard.cc.
| void nanommo::Soundboard::Departure | ( | ) |
Definition at line 84 of file soundboard.cc.
|
inline |
How loud the sounds are, from the settings, from 0 to 1.
Definition at line 32 of file soundboard.h.
| void nanommo::Soundboard::Skill | ( | uint32_t | skill, |
| bool | target, | ||
| Heard | heard ) |
The skill's sound, by the skill's id, with the fx at the target if a monster was picked.
Definition at line 77 of file soundboard.cc.
Definition at line 72 of file soundboard.cc.
|
staticconstexpr |
Definition at line 24 of file soundboard.h.
|
staticconstexpr |
Takes of each step, and of each skill.
Definition at line 23 of file soundboard.h.