X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=lib%2Fapp%2Fglobals.cpp;h=53277787a02ae40f108375284203efbd3c1399b0;hb=0614cf0d1891a5f3f191eecfd021efe49b6601ea;hp=035f7b52d9d15d1341ac3fdc4653045d21e66f7b;hpb=9c511ea692d3a2339597211f08f18ea74fad35ec;p=supertux.git diff --git a/lib/app/globals.cpp b/lib/app/globals.cpp index 035f7b52d..53277787a 100644 --- a/lib/app/globals.cpp +++ b/lib/app/globals.cpp @@ -18,10 +18,24 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. +#include + #include "app/globals.h" +#include "special/timer.h" + +namespace SuperTux { + +TinyGetText::DictionaryManager dictionary_manager; +TinyGetText::Dictionary* dictionary = 0; /** The datadir prefix prepended when loading game data file */ std::string datadir; +std::string package_symbol_name; +std::string package_name; +std::string package_version; + +int screen_width = SCREEN_WIDTH; +int screen_height = SCREEN_HEIGHT; JoystickKeymap::JoystickKeymap() { @@ -38,35 +52,24 @@ JoystickKeymap::JoystickKeymap() JoystickKeymap joystick_keymap; SDL_Surface * screen; -Font* gold_text; -Font* blue_text; -Font* gray_text; -Font* yellow_nums; -Font* white_text; -Font* white_small_text; -Font* white_big_text; - MouseCursor * mouse_cursor; -bool use_gl; -bool use_joystick; -bool use_fullscreen; -bool debug_mode; -bool show_fps; -float game_speed = 1.0f; - +#if 0 int joystick_num = 0; char* level_startup_file = 0; bool launch_leveleditor_mode = false; bool launch_worldmap_mode = false; +bool flip_levels_mode = false; +#endif /* SuperTux directory ($HOME/.supertux) and save directory($HOME/.supertux/save) */ -char *st_dir, *st_save_dir; +std::string user_dir; SDL_Joystick * js; /* Returns 1 for every button event, 2 for a quit event and 0 for no event. */ -int wait_for_event(SDL_Event& event,unsigned int min_delay, unsigned int max_delay, bool empty_events) +int wait_for_event(SDL_Event& event, unsigned int min_delay, + unsigned int max_delay, bool empty_events) { int i; Timer maxdelay; @@ -122,3 +125,5 @@ int wait_for_event(SDL_Event& event,unsigned int min_delay, unsigned int max_del return 0; } + +} //namespace SuperTux