1#ifndef SOUNDEFFECTPLAYER_H
2#define SOUNDEFFECTPLAYER_H
31 return static_cast<int>(e);
64 QList<QSoundEffect*> effects;
69 void init_sound_effect();
Handles playback of sound effects.
Definition SoundEffectPlayer.h:13
EffectIndex
Indexes for different sound effects.
Definition SoundEffectPlayer.h:19
@ SCORE
Score sound effect.
static constexpr EffectIndex index(const int e)
Converts integer to EffectIndex.
Definition SoundEffectPlayer.h:39
void play(EffectIndex index)
Plays specified sound effect.
Definition SoundEffectPlayer.cpp:9
static constexpr int max_cnt()
Gets total number of sound effects.
Definition SoundEffectPlayer.h:47
static constexpr int index(const EffectIndex &e)
Converts EffectIndex to integer.
Definition SoundEffectPlayer.h:30