update
[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 /* Action done on the menu */
26 enum {
27   MN_UP,
28   MN_DOWN,
29   MN_HIT
30 };
31
32 /* Menus */
33 enum {
34   MENU_MAIN,
35   MENU_OPTIONS
36 };
37
38 /* Initialize the menu variables */
39 void initmenu(void);
40
41 /* "Calculate" and draw the menu */
42 int drawmenu(void);
43
44 /* Check for a menu event */
45 void menu_event(SDLKey key);
46
47 #endif /*SUPERTUX_MENU_H*/
48