nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
nanommo::Soundboard Class Reference

#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

Detailed Description

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.

Constructor & Destructor Documentation

◆ Soundboard()

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.

Member Function Documentation

◆ Arrival()

void nanommo::Soundboard::Arrival ( int land)

Into the land, by its place in the lands.

Definition at line 86 of file soundboard.cc.

◆ Departure()

void nanommo::Soundboard::Departure ( )

Definition at line 84 of file soundboard.cc.

◆ set_volume()

void nanommo::Soundboard::set_volume ( float volume)
inline

How loud the sounds are, from the settings, from 0 to 1.

Definition at line 32 of file soundboard.h.

◆ Skill()

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.

◆ Step()

void nanommo::Soundboard::Step ( Ground ground,
Heard heard )

Definition at line 72 of file soundboard.cc.

Member Data Documentation

◆ kSkillTakes

int nanommo::Soundboard::kSkillTakes = 3
staticconstexpr

Definition at line 24 of file soundboard.h.

◆ kStepTakes

int nanommo::Soundboard::kStepTakes = 8
staticconstexpr

Takes of each step, and of each skill.

Definition at line 23 of file soundboard.h.


The documentation for this class was generated from the following files: