00001 // SuperTux 00002 // Copyright (C) 2009 Ingo Ruhnke <grumbel@gmx.de> 00003 // 00004 // This program is free software: you can redistribute it and/or modify 00005 // it under the terms of the GNU General Public License as published by 00006 // the Free Software Foundation, either version 3 of the License, or 00007 // (at your option) any later version. 00008 // 00009 // This program is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 // GNU General Public License for more details. 00013 // 00014 // You should have received a copy of the GNU General Public License 00015 // along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 00017 #ifndef HEADER_SUPERTUX_SUPERTUX_GLOBALS_HPP 00018 #define HEADER_SUPERTUX_SUPERTUX_GLOBALS_HPP 00019 00020 typedef struct SDL_Surface SDL_Surface; 00021 namespace tinygettext { class DictionaryManager; } 00022 class Config; 00023 class JoystickKeyboardController; 00024 class PlayerStatus; 00025 class ScreenManager; 00026 class SoundManager; 00027 class SpriteManager; 00028 class TextureManager; 00029 class TileManager; 00030 class TileSet; 00031 00035 extern int SCREEN_WIDTH; 00036 00040 extern int SCREEN_HEIGHT; 00041 00042 // global variables 00043 extern JoystickKeyboardController* g_jk_controller; 00044 00045 extern SDL_Surface* g_screen; 00046 00047 extern ScreenManager* g_screen_manager; 00048 00049 extern TextureManager* texture_manager; 00050 00051 extern SoundManager* sound_manager; 00052 00053 extern Config* g_config; 00054 00055 extern tinygettext::DictionaryManager* dictionary_manager; 00056 00057 extern float game_time; 00058 extern float real_time; 00059 00060 extern TileManager *tile_manager; 00061 00063 extern TileSet *current_tileset; 00064 00065 extern SpriteManager* sprite_manager; 00066 00067 extern float g_game_speed; 00068 00069 #endif 00070 00071 /* EOF */