Fix for coverity #29360
[supertux.git] / src / supertux / title_screen.hpp
index 363cd9c..65f68ea 100644 (file)
@@ -27,6 +27,7 @@ class ContribWorldMenu;
 class Menu;
 class PlayerStatus;
 class World;
+class Savegame;
 
 /**
  * Screen that displays the SuperTux logo, lets players start a new game, etc.
@@ -34,10 +35,7 @@ class World;
 class TitleScreen : public Screen
 {
 public:
-  static std::string get_level_name(const std::string& levelfile);
-
-public:
-  TitleScreen(PlayerStatus* player_status);
+  TitleScreen(Savegame& savegame);
   virtual ~TitleScreen();
 
   virtual void setup();
@@ -47,12 +45,9 @@ public:
 
   virtual void update(float elapsed_time);
 
-public:
-  static void start_game(std::unique_ptr<World> world);
-
 private:
   void make_tux_jump();
-  
+
 private:
   SurfacePtr frame;
   std::unique_ptr<CodeController> controller;