Now, the worldmap displays the Level's name, instead of the path.
[supertux.git] / src / worldmap.h
index 343ef61..eab9e7e 100644 (file)
@@ -139,6 +139,7 @@ public:
     int x;
     int y;
     std::string name;
+    std::string title;
     bool solved;
 
     // Directions which are walkable from this level
@@ -160,6 +161,8 @@ private:
   Point offset;
   std::string savegame_file;
 
+  void get_level_title(Levels::pointer level);
+
   void draw_status();
 public:
   WorldMap();
@@ -188,6 +191,8 @@ public:
 
   void savegame(const std::string& filename);
   void loadgame(const std::string& filename);
+private:
+  void on_escape_press();
 };
 
 } // namespace WorldMapNS