X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=lib%2Fapp%2Fglobals.h;h=24950179b0dd39d3d3e231e3f1158b2698c7f0dd;hb=4b476ec30e7dd62249328054402d6493c20a685d;hp=ca6528975583fb1d7c4dbf4ad32354d2f14b1940;hpb=9c511ea692d3a2339597211f08f18ea74fad35ec;p=supertux.git diff --git a/lib/app/globals.h b/lib/app/globals.h index ca6528975..24950179b 100644 --- a/lib/app/globals.h +++ b/lib/app/globals.h @@ -26,58 +26,63 @@ #include "SDL.h" -#include "video/font.h" -#include "gui/menu.h" -#include "gui/mousecursor.h" - -extern std::string datadir; - -struct JoystickKeymap -{ - int a_button; - int b_button; - int start_button; - - int x_axis; - int y_axis; - - int dead_zone; - - JoystickKeymap(); -}; - -extern JoystickKeymap joystick_keymap; - -extern SDL_Surface* screen; -extern Font* gold_text; -extern Font* white_text; -extern Font* blue_text; -extern Font* gray_text; -extern Font* white_small_text; -extern Font* white_big_text; -extern Font* yellow_nums; - -extern MouseCursor * mouse_cursor; - -extern bool use_gl; -extern bool use_joystick; -extern bool use_fullscreen; -extern bool debug_mode; -extern bool show_fps; - -/** The number of the joystick that will be use in the game */ -extern int joystick_num; -extern char* level_startup_file; -extern bool launch_leveleditor_mode; -extern bool launch_worldmap_mode; - -/* SuperTux directory ($HOME/.supertux) and save directory($HOME/.supertux/save) */ -extern char* st_dir; -extern char* st_save_dir; - -extern float game_speed; -extern SDL_Joystick * js; - -int wait_for_event(SDL_Event& event,unsigned int min_delay = 0, unsigned int max_delay = 0, bool empty_events = false); +#include "../video/font.h" +#include "../gui/menu.h" +#include "../gui/mousecursor.h" + +namespace SuperTux + { + + extern std::string datadir; + + struct JoystickKeymap + { + int a_button; + int b_button; + int start_button; + + int x_axis; + int y_axis; + + int dead_zone; + + JoystickKeymap(); + }; + + extern JoystickKeymap joystick_keymap; + + extern SDL_Surface* screen; + extern Font* gold_text; + extern Font* white_text; + extern Font* blue_text; + extern Font* gray_text; + extern Font* white_small_text; + extern Font* white_big_text; + extern Font* yellow_nums; + + extern MouseCursor * mouse_cursor; + + extern bool use_gl; + extern bool use_joystick; + extern bool use_fullscreen; + extern bool debug_mode; + extern bool show_fps; + + /** The number of the joystick that will be use in the game */ + extern int joystick_num; + extern char* level_startup_file; + extern bool launch_leveleditor_mode; + extern bool launch_worldmap_mode; + + /* SuperTux directory ($HOME/.supertux) and save directory($HOME/.supertux/save) */ + extern char* st_dir; + extern char* st_save_dir; + + extern float game_speed; + extern SDL_Joystick * js; + + int wait_for_event(SDL_Event& event,unsigned int min_delay = 0, unsigned int max_delay = 0, bool empty_events = false); + +} //namespace SuperTux #endif /* SUPERTUX_GLOBALS_H */