X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsupertux%2Fglobals.hpp;h=6aca5eb4852f02aa2177c2929995ee0659eeaed9;hb=d7f9751b33eb80b789aabee8c1cac97a237e9d25;hp=86a62b4a4d38f20ca174625663f08506ffc125e1;hpb=edbfd863c96cf8709d760d470a5cc9fdb51547b3;p=supertux.git diff --git a/src/supertux/globals.hpp b/src/supertux/globals.hpp index 86a62b4a4..6aca5eb48 100644 --- a/src/supertux/globals.hpp +++ b/src/supertux/globals.hpp @@ -1,5 +1,5 @@ // SuperTux -// Copyright (C) 2009 Ingo Ruhnke +// Copyright (C) 2009 Ingo Ruhnke // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -17,13 +17,17 @@ #ifndef HEADER_SUPERTUX_SUPERTUX_GLOBALS_HPP #define HEADER_SUPERTUX_SUPERTUX_GLOBALS_HPP -#include - +typedef struct SDL_Surface SDL_Surface; +namespace tinygettext { class DictionaryManager; } class Config; -class JoystickKeyboardController; -class SoundManager; +class InputManager; +class PlayerStatus; class ScreenManager; +class SoundManager; +class SpriteManager; class TextureManager; +class TileManager; +class TileSet; /** The width of the display (this is a logical value, not the physical value, since aspect_ration and projection_area might @@ -36,9 +40,7 @@ extern int SCREEN_WIDTH; extern int SCREEN_HEIGHT; // global variables -extern JoystickKeyboardController* g_main_controller; - -extern SDL_Surface* g_screen; +extern InputManager* g_input_manager; extern ScreenManager* g_screen_manager; @@ -48,9 +50,20 @@ extern SoundManager* sound_manager; extern Config* g_config; +extern tinygettext::DictionaryManager* dictionary_manager; + extern float game_time; extern float real_time; +extern TileManager *tile_manager; + +/** this is only set while loading a map */ +extern TileSet *current_tileset; + +extern SpriteManager* sprite_manager; + +extern float g_game_speed; + #endif /* EOF */