- new more bulletprof endsequence code patch from MatzeB
[supertux.git] / src / level.h
index 6ed8f36..11d8181 100644 (file)
@@ -25,6 +25,7 @@
 #include "texture.h"
 #include "badguy.h"
 #include "lispreader.h"
+#include "musicref.h"
 
 class Tile;
 
@@ -68,6 +69,8 @@ class Level
 {
  public:
   Surface* img_bkgd;
+  MusicRef level_song;
+  MusicRef level_song_fast;
 
   std::string name;
   std::string author;
@@ -84,7 +87,6 @@ class Level
   int width;
   int start_pos_x;
   int start_pos_y;
-  int  endpos;
   float gravity;
 
   std::vector<BadGuyData> badguy_data;
@@ -95,6 +97,7 @@ class Level
   Level();
   Level(const std::string& subset, int level);
   Level(const std::string& filename);
+  ~Level();
 
   /** Will the Level structure with default values */
   void init_defaults();
@@ -115,6 +118,8 @@ class Level
   
   void load_song();
   void free_song();
+  MusicRef get_level_music();
+  MusicRef get_level_music_fast();
 
   void save(const char* subset, int level);