X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=lib%2Fapp%2Fglobals.h;h=850707d732891cb8fa9a663299d0676a32950649;hb=0614cf0d1891a5f3f191eecfd021efe49b6601ea;hp=73c600b6c16622624d829806c17951db41221bd6;hpb=edaacb3651cf0560314dd008d7243be4b3b2f8c6;p=supertux.git diff --git a/lib/app/globals.h b/lib/app/globals.h index 73c600b6c..850707d73 100644 --- a/lib/app/globals.h +++ b/lib/app/globals.h @@ -27,12 +27,16 @@ #include "SDL.h" #include "video/font.h" -#include "gui/menu.h" -#include "gui/mousecursor.h" +#include "tinygettext.h" namespace SuperTux { + extern TinyGetText::DictionaryManager dictionary_manager; + extern TinyGetText::Dictionary* dictionary; + + class MouseCursor; + extern std::string datadir; struct JoystickKeymap @@ -51,34 +55,17 @@ namespace SuperTux 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; +#define SCREEN_WIDTH 800 +#define SCREEN_HEIGHT 600 /** 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; + /* SuperTux directory ($HOME/.supertux) */ + extern std::string user_dir; + 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);