-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.h
52 lines (42 loc) · 841 Bytes
/
settings.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
51
#ifndef __DARTPUNK_SETTINGS__
#define __DARTPUNK_SETTINGS__
#include "menu/players.h"
#include "menu/x01.h"
namespace dartpunk
{
namespace game
{
class Game;
}
class Settings
{
public:
enum class State : uint8_t
{
PLAYERS = 1,
GAME = 2,
COUNT_UP = 3,
X01_START = 4,
X01_OPTIONS = 5,
CRICKET = 6,
TIC_TAC_TOE = 7,
HALF_IT = 8
};
private:
State state;
menu::Players players;
menu::Menu game;
menu::Menu x01_start;
menu::X01 x01_options;
menu::Menu cricket;
private:
menu::Abstract * menu ();
public:
Settings ();
void select (uint8_t);
game::Game * confirm ();
void cancel ();
void render (App *);
};
} // dartpunk
#endif // __DARTPUNK_SETTINGS__