4 Super Tux - Global Variabls
7 bill@newbreedsoftware.com
8 http://www.newbreedsoftware.com/supertux/
10 April 11, 2000 - March 15, 2004
14 #ifndef SUPERTUX_GLOBALS_H
15 #define SUPERTUX_GLOBALS_H
21 #include "mousecursor.h"
23 extern std::string datadir;
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;
35 extern MouseCursor * mouse_cursor;
38 extern bool use_joystick;
39 extern bool use_fullscreen;
40 extern bool debug_mode;
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;
48 /* SuperTux directory ($HOME/.supertux) and save directory($HOME/.supertux/save) */
50 extern char* st_save_dir;
52 extern SDL_Joystick * js;
54 int wait_for_event(SDL_Event& event,unsigned int min_delay = 0, unsigned int max_delay = 0, bool empty_events = false);
56 #define JOYSTICK_DEAD_ZONE 4096
58 #endif /* SUPERTUX_GLOBALS_H */