Update CMake to 3.2.1 in .travis.yml
[supertux.git] / src / supertux / globals.hpp
index eb9a252..b1d7f4d 100644 (file)
@@ -1,5 +1,5 @@
 //  SuperTux
-//  Copyright (C) 2009 Ingo Ruhnke <grumbel@gmx.de>
+//  Copyright (C) 2009 Ingo Ruhnke <grumbel@gmail.com>
 //
 //  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
 #ifndef HEADER_SUPERTUX_SUPERTUX_GLOBALS_HPP
 #define HEADER_SUPERTUX_SUPERTUX_GLOBALS_HPP
 
-#include <SDL.h>
+#include <memory>
+
+class Config;
+class TileSet;
 
 /** The width of the display (this is a logical value, not the
     physical value, since aspect_ration and projection_area might
@@ -29,11 +32,15 @@ extern int SCREEN_WIDTH;
     shrink or scale things) */
 extern int SCREEN_HEIGHT;
 
-// global variables
-class  JoystickKeyboardController;
-extern JoystickKeyboardController* g_main_controller;
+extern std::unique_ptr<Config> g_config;
+
+extern float game_time;
+extern float real_time;
+
+/** this is only set while loading a map */
+extern TileSet* current_tileset;
 
-extern SDL_Surface* g_screen;
+extern float g_game_speed;
 
 #endif