fix configure scritp
[supertux.git] / lib / app / globals.h
index ca65289..850707d 100644 (file)
 #include "SDL.h"
 
 #include "video/font.h"
-#include "gui/menu.h"
-#include "gui/mousecursor.h"
+#include "tinygettext.h"
 
-extern std::string datadir;
+namespace SuperTux
+  {
 
-struct JoystickKeymap
-{
-  int a_button;
-  int b_button;
-  int start_button;
-
-  int x_axis;
-  int y_axis;
+  extern TinyGetText::DictionaryManager dictionary_manager;
+  extern TinyGetText::Dictionary* dictionary;
   
-  int dead_zone;
+  class MouseCursor;
+
+  extern std::string datadir;
+
+  struct JoystickKeymap
+    {
+      int a_button;
+      int b_button;
+      int start_button;
 
-  JoystickKeymap();
-};
+      int x_axis;
+      int y_axis;
 
-extern JoystickKeymap joystick_keymap;
+      int dead_zone;
 
-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;
+      JoystickKeymap();
+    };
 
-extern MouseCursor * mouse_cursor;
+  extern JoystickKeymap joystick_keymap;
 
-extern bool use_gl;
-extern bool use_joystick;
-extern bool use_fullscreen;
-extern bool debug_mode;
-extern bool show_fps;
+  extern MouseCursor * mouse_cursor;
 
-/** 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;
+#define SCREEN_WIDTH  800
+#define SCREEN_HEIGHT 600
 
-/* SuperTux directory ($HOME/.supertux) and save directory($HOME/.supertux/save) */
-extern char* st_dir;
-extern char* st_save_dir;
+  /** The number of the joystick that will be use in the game */
+  extern int joystick_num;
+
+  /* SuperTux directory ($HOME/.supertux) */
+  extern std::string user_dir;
+  
+  extern SDL_Joystick * js;
 
-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);
 
-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 */