-
Notifications
You must be signed in to change notification settings - Fork 1
/
publicgamesounds.h
50 lines (43 loc) · 1.05 KB
/
publicgamesounds.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef PUBLICGAMESOUNDS_H
#define PUBLICGAMESOUNDS_H
/**
* @brief A class to control the common sounds in the game.
*/
class PublicGameSounds
{
public:
/**
* @brief Init the sounds, load them to memory.
*/
static void init();
/**
* @brief Try to release space, delete the sounds which has been finished.
*/
static void tryToReleaseSpace();
/**
* @brief Delete all the sounds.
*/
static void clear();
/**
* @brief Type of common sounds.
*/
enum GameSounds {GoodMove = -1,
BadMove = 0,
Eliminate,
GetFlame,
GetStar,
UseFlame,
UseStar,
NextStage,
GameOver};
/**
* @brief Add a sound in given type.
*/
static void addSound(GameSounds gamesound);
/**
* @brief Add a sound with the count of elimination, may be used if we
* create different sounds for different kind of elimination.
*/
static void addEliminate(int count);
};
#endif // PUBLICGAMESOUNDS_H