Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
monopoly::udsound::Runtime Class Referencefinal

#include <UDSoundRuntime.hpp>

Public Member Functions

std::expected< void, std::string > warning (audio::Runtime &audio)
 
std::expected< void, std::string > click (audio::Runtime &audio)
 
std::expected< void, std::string > build (audio::Runtime &audio)
 
std::expected< void, std::string > unbuild (audio::Runtime &audio)
 
std::expected< void, std::string > saveFailure (audio::Runtime &audio)
 
std::expected< void, std::string > siren (audio::Runtime &audio, std::uint8_t variant)
 
std::expected< void, std::string > cashUp (audio::Runtime &audio)
 
std::expected< void, std::string > cashDown (audio::Runtime &audio)
 
std::expected< void, std::string > syncMusic (audio::Runtime &audio, bool gameInProgress, bool musicOn, std::uint8_t tuneIndex, bool creditsActive=false)
 
std::expected< void, std::string > syncCash (audio::Runtime &audio, ibar::ScoreCashChange change)
 
std::expected< TokenVoicePlayResult, std::string > tokenVoice (audio::Runtime &audio, bool voicesOn, std::uint8_t token, TokenVoiceLine line, TokenVoiceClipPolicy policy, std::uint32_t randomValue)
 
std::expected< TokenVoicePlayResult, std::string > pennybagsVoice (audio::Runtime &audio, bool hostCommentsOn, PennybagsVoice voice, TokenVoiceClipPolicy policy, std::uint32_t randomValue)
 
std::expected< TokenVoicePlayResult, std::string > pennybagsSpecific (audio::Runtime &audio, bool hostCommentsOn, data::DataId wave, TokenVoiceClipPolicy policy)
 
std::expected< bool, std::string > syncTokenVoices (audio::Runtime &audio)
 
void watchTokenVoice (audio::Runtime &audio, std::uint8_t token) noexcept
 
void watchPennybags (audio::Runtime &audio) noexcept
 
bool tokenVoiceActive (const audio::Runtime &audio, std::uint8_t token) const noexcept
 
bool talkingQueueIdle (const audio::Runtime &audio) const noexcept
 
bool postLockVoiceSlotEmpty () const noexcept
 
void reset (audio::Runtime *audio=nullptr) noexcept
 
std::optional< data::DataId > currentMusic () const noexcept
 

Detailed Description

Definition at line 37 of file UDSoundRuntime.hpp.

Member Function Documentation

◆ build()

std::expected< void, std::string > monopoly::udsound::Runtime::build ( audio::Runtime &  audio)

Definition at line 37 of file UDSoundRuntime.cpp.

◆ cashDown()

std::expected< void, std::string > monopoly::udsound::Runtime::cashDown ( audio::Runtime &  audio)

Definition at line 53 of file UDSoundRuntime.cpp.

◆ cashUp()

std::expected< void, std::string > monopoly::udsound::Runtime::cashUp ( audio::Runtime &  audio)

Definition at line 51 of file UDSoundRuntime.cpp.

◆ click()

std::expected< void, std::string > monopoly::udsound::Runtime::click ( audio::Runtime &  audio)

Definition at line 35 of file UDSoundRuntime.cpp.

◆ currentMusic()

std::optional< data::DataId > monopoly::udsound::Runtime::currentMusic ( ) const
inlinenoexcept

Definition at line 76 of file UDSoundRuntime.hpp.

◆ pennybagsSpecific()

std::expected< TokenVoicePlayResult, std::string > monopoly::udsound::Runtime::pennybagsSpecific ( audio::Runtime &  audio,
bool  hostCommentsOn,
data::DataId  wave,
TokenVoiceClipPolicy  policy 
)

Definition at line 227 of file UDSoundRuntime.cpp.

◆ pennybagsVoice()

std::expected< TokenVoicePlayResult, std::string > monopoly::udsound::Runtime::pennybagsVoice ( audio::Runtime &  audio,
bool  hostCommentsOn,
PennybagsVoice  voice,
TokenVoiceClipPolicy  policy,
std::uint32_t  randomValue 
)

Definition at line 211 of file UDSoundRuntime.cpp.

◆ postLockVoiceSlotEmpty()

bool monopoly::udsound::Runtime::postLockVoiceSlotEmpty ( ) const
inlinenoexcept

Definition at line 72 of file UDSoundRuntime.hpp.

◆ reset()

void monopoly::udsound::Runtime::reset ( audio::Runtime *  audio = nullptr)
noexcept

Definition at line 275 of file UDSoundRuntime.cpp.

◆ saveFailure()

std::expected< void, std::string > monopoly::udsound::Runtime::saveFailure ( audio::Runtime &  audio)

Definition at line 41 of file UDSoundRuntime.cpp.

◆ siren()

std::expected< void, std::string > monopoly::udsound::Runtime::siren ( audio::Runtime &  audio,
std::uint8_t  variant 
)

Definition at line 43 of file UDSoundRuntime.cpp.

◆ syncCash()

std::expected< void, std::string > monopoly::udsound::Runtime::syncCash ( audio::Runtime &  audio,
ibar::ScoreCashChange  change 
)

Definition at line 56 of file UDSoundRuntime.cpp.

◆ syncMusic()

std::expected< void, std::string > monopoly::udsound::Runtime::syncMusic ( audio::Runtime &  audio,
bool  gameInProgress,
bool  musicOn,
std::uint8_t  tuneIndex,
bool  creditsActive = false 
)

Definition at line 64 of file UDSoundRuntime.cpp.

◆ syncTokenVoices()

std::expected< bool, std::string > monopoly::udsound::Runtime::syncTokenVoices ( audio::Runtime &  audio)

Definition at line 237 of file UDSoundRuntime.cpp.

◆ talkingQueueIdle()

bool monopoly::udsound::Runtime::talkingQueueIdle ( const audio::Runtime &  audio) const
noexcept

Definition at line 260 of file UDSoundRuntime.cpp.

◆ tokenVoice()

std::expected< TokenVoicePlayResult, std::string > monopoly::udsound::Runtime::tokenVoice ( audio::Runtime &  audio,
bool  voicesOn,
std::uint8_t  token,
TokenVoiceLine  line,
TokenVoiceClipPolicy  policy,
std::uint32_t  randomValue 
)

Definition at line 196 of file UDSoundRuntime.cpp.

◆ tokenVoiceActive()

bool monopoly::udsound::Runtime::tokenVoiceActive ( const audio::Runtime &  audio,
std::uint8_t  token 
) const
noexcept

Definition at line 108 of file UDSoundRuntime.cpp.

◆ unbuild()

std::expected< void, std::string > monopoly::udsound::Runtime::unbuild ( audio::Runtime &  audio)

Definition at line 39 of file UDSoundRuntime.cpp.

◆ warning()

std::expected< void, std::string > monopoly::udsound::Runtime::warning ( audio::Runtime &  audio)

Definition at line 33 of file UDSoundRuntime.cpp.

◆ watchPennybags()

void monopoly::udsound::Runtime::watchPennybags ( audio::Runtime &  audio)
noexcept

Definition at line 271 of file UDSoundRuntime.cpp.

◆ watchTokenVoice()

void monopoly::udsound::Runtime::watchTokenVoice ( audio::Runtime &  audio,
std::uint8_t  token 
)
noexcept

Definition at line 265 of file UDSoundRuntime.cpp.


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