Game of Ur 0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
Loading...
Searching...
No Matches
UrSoundPlayer Class Reference

Class responsible for loading, validating, and storing records of all completed games played on this platform. More...

#include <ur_sounds.hpp>

Inheritance diagram for UrSoundPlayer:

Public Member Functions

std::shared_ptr< BaseSimObjectAspect > clone () const override
void playEffect (UrSoundFX effect, uint8_t priority=0)
uint8_t getVolume () const
void decrementVolume5 ()
void incrementVolume5 ()

Static Public Member Functions

static std::string getSimObjectAspectTypeName ()
static std::shared_ptr< BaseSimObjectAspect > create (const nlohmann::json &jsonAspectProperties)

Private Member Functions

void onActivated () override

Private Attributes

std::array< std::shared_ptr< ToyMaker::Sound >, static_cast< uint8_t >(UrSoundFX::TOTAL)> mSounds {}
std::unique_ptr< ToyMaker::SoundChannel > mChannelMusic { nullptr }
std::unique_ptr< ToyMaker::SoundChannel > mChannelEffects { nullptr }
uint8_t mEffectPriority { 0 }
uint8_t mVolume { 100 }

Detailed Description

Class responsible for loading, validating, and storing records of all completed games played on this platform.


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