4 // Copyright (C) 2004 Bill Kendrick <bill@newbreedsoftware.com>
5 // Tobias Glaesser <tobi.web@gmx.de>
6 // Ingo Ruhnke <grumbel@gmx.de>
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License
10 // as published by the Free Software Foundation; either version 2
11 // of the License, or (at your option) any later version.
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 #ifndef SUPERTUX_GLOBALS_H
23 #define SUPERTUX_GLOBALS_H
29 #include "video/font.h"
31 #include "gui/mousecursor.h"
33 extern std::string datadir;
49 extern JoystickKeymap joystick_keymap;
51 extern SDL_Surface* screen;
52 extern Font* gold_text;
53 extern Font* white_text;
54 extern Font* blue_text;
55 extern Font* gray_text;
56 extern Font* white_small_text;
57 extern Font* white_big_text;
58 extern Font* yellow_nums;
60 extern MouseCursor * mouse_cursor;
63 extern bool use_joystick;
64 extern bool use_fullscreen;
65 extern bool debug_mode;
68 /** The number of the joystick that will be use in the game */
69 extern int joystick_num;
70 extern char* level_startup_file;
71 extern bool launch_leveleditor_mode;
72 extern bool launch_worldmap_mode;
74 /* SuperTux directory ($HOME/.supertux) and save directory($HOME/.supertux/save) */
76 extern char* st_save_dir;
78 extern float game_speed;
79 extern SDL_Joystick * js;
81 int wait_for_event(SDL_Event& event,unsigned int min_delay = 0, unsigned int max_delay = 0, bool empty_events = false);
83 #endif /* SUPERTUX_GLOBALS_H */