Debian Codegraph @

src/menu.h

raw symbols SCIP
1 #ifndef MENU_HEADER_FILE__
2 #define MENU_HEADER_FILE__
3
4 #define ACTION_QUIT 1
5 #define ACTION_MISSION 2
6
7 #define BUTTON_PLAY 1
8 #define BUTTON_QUIT 2
9 #define BUTTON_PREV_MISSION 3
10 #define BUTTON_NEXT_MISSION 4
11 #define BUTTON_MOVE_UP 5
12 #define BUTTON_MOVE_DOWN 6
13 #define BUTTON_ACTIVATE 7
14
15 #define MISSION_PREVIOUS 1
16 #define MISSION_NEXT 2
17
18 #ifndef TRUE
19 #define TRUE 1
20 #endif
21 #ifndef FALSE
22 #define FALSE 0
23 #endif
24
25
26 // Returns one of the above actions
27 int Main_Menu(int *mission_number, SDL_Surface *screen);
28
29
30
31 // This function selects the next/previous mission
32 // It checks to make sure the mission files exist.
33 // The new mission number is returned on success and
34 // the original mission number on failure.
35 int New_Mission(int next_prev, int old_mission);
36
37
38 // This function displays the description of a mission on the
39 // menu screen
40 int Display_Mission(int mission_number);
41
42
43 // This function draws the important buttons and keyboard
44 // cursor on the screen
45 // The "selected" parameter tells us which button is currently
46 // highlighted
47 int Draw_Main_Menu(int selected, Uint32 menu_colour);
48
49 // This function checks to see if we have any keyboard or
50 // mouse input. We return one of the "button" values
51 // defined above
52 int Menu_Input();
53
54
55 #endif
56