X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Flevel.h;h=11d8181354b2bf1444dd94264f152b549fb9c388;hb=a5123e6e7071da6d73a1ef0b19bf4acb19981605;hp=6ed8f36e611f9442b5b9f7cec68745bcd2586b27;hpb=84160722392a024dda42bd86ca9bd85b68c49457;p=supertux.git diff --git a/src/level.h b/src/level.h index 6ed8f36e6..11d818135 100644 --- a/src/level.h +++ b/src/level.h @@ -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 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);