incoporated patches from Duong-Khang (stereo sound!) and Ricardo Cruz <rick2@aeiou...
[supertux.git] / src / menu.h
1 /*
2   menu.h
3   
4   Super Tux - Menu
5   
6   by Tobias Glaesser
7   tobi.web@gmx.de
8   http://www.newbreedsoftware.com/supertux/
9   
10   December 20, 2003
11 */
12
13 #ifndef SUPERTUX_MENU_H
14 #define SUPERTUX_MENU_H
15
16 #include <SDL.h>
17
18 /* (global) menu variables */
19 int menuaction;
20 int menuitem;
21 int menumenu;
22 int show_menu;
23 int menu_change;
24
25 #define MENU_MAIN_ITEM_MAX 3
26 #define MENU_GAME_ITEM_MAX 2
27 #define MENU_OPTIONS_ITEM_MAX 3
28 #define MENU_LEVELEDITOR_ITEM_MAX 4
29
30 /* Action done on the menu */
31 enum {
32   MN_UP,
33   MN_DOWN,
34   MN_HIT
35 };
36
37 /* Menus */
38 enum {
39   MENU_MAIN,
40   MENU_GAME,
41   MENU_OPTIONS,
42   MENU_LEVELEDITOR
43 };
44
45 /* Initialize the menu variables */
46 void initmenu(void);
47
48 /* "Calculate" and draw the menu */
49 int drawmenu(void);
50
51 /* Check for a menu event */
52 void menu_event(SDLKey key);
53
54 #endif /*SUPERTUX_MENU_H*/
55