- more c++-ification
[supertux.git] / src / globals.h
1 /*
2   globals.h
3   
4   Super Tux - Global Variabls
5   
6   by Bill Kendrick
7   bill@newbreedsoftware.com
8   http://www.newbreedsoftware.com/supertux/
9   
10   April 11, 2000 - March 15, 2004
11 */
12
13
14 #ifndef SUPERTUX_GLOBALS_H
15 #define SUPERTUX_GLOBALS_H
16
17 #include <string>
18 #include <SDL.h>
19 #include "text.h"
20 #include "menu.h"
21 #include "mousecursor.h"
22
23 extern std::string datadir;
24
25 extern SDL_Surface * screen;
26 extern text_type black_text;
27 extern text_type gold_text;
28 extern text_type white_text;
29 extern text_type white_small_text;
30 extern text_type white_big_text;
31 extern text_type blue_text;
32 extern text_type red_text;
33 extern text_type yellow_nums;
34
35 extern MouseCursor * mouse_cursor;
36
37 extern bool use_gl;
38 extern bool use_joystick;
39 extern bool use_fullscreen;
40 extern bool debug_mode;
41 extern bool show_fps;
42
43 /** The number of the joystick that will be use in the game */
44 extern int joystick_num;
45 extern char* level_startup_file;
46 extern bool launch_worldmap_mode;
47
48 /* SuperTux directory ($HOME/.supertux) and save directory($HOME/.supertux/save) */
49 extern char* st_dir;
50 extern char* st_save_dir;
51
52 extern SDL_Joystick * js;
53
54 int wait_for_event(SDL_Event& event,unsigned int min_delay = 0, unsigned int max_delay = 0, bool empty_events = false);
55
56 #define JOYSTICK_DEAD_ZONE 4096
57
58 #endif /* SUPERTUX_GLOBALS_H */