[go: up one dir, main page]

Menu

[r21]: / include / menu.h  Maximize  Restore  History

Download this file

44 lines (32 with data), 632 Bytes

 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
#ifndef MENU_H
#define MENU_H
#define MENU_IN 0
#define MENU_OUT 1
#define MENU_UP 2
#define MENU_DOWN 3
#define MENU_LEFT 4
#define MENU_RIGHT 5
#define MENU_DRAW 6
#define PAGE_MAIN 0
#define PAGE_OPTIONS 1
#define PAGE_EDITOR 2
#define PAGE_CREDITS 3
#define PAGE_CONSOLE 4
class Menu
{
Editor *editor;
int active_page;
void push_menu_matrix();
void pop_menu_matrix();
void start_race();
int page_main(int action);
int page_console(int action);
int page_editor(int action);
public:
Menu();
bool is_open;
void mouse_check();
int send_action(int action);
void draw();
};
#endif