- added 'falling' graphics, well, not really, but better than invisible
[supertux.git] / src / level.h
index 4a22948..11d8181 100644 (file)
@@ -1,14 +1,22 @@
+//  $Id$
+// 
+//  SuperTux
+//  Copyright (C) 2004 SuperTux Development Team, see AUTHORS for details
 //
-// C Interface: level
-//
-// Description:
-//
-//
-// Author: Tobias Glaesser <tobi.web@gmx.de>, (C) 2003
-//
-// Copyright: See COPYING file that comes with this distribution
-//
+//  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 the Free Software Foundation; either version 2
+//  of the License, or (at your option) any later version.
 //
+//  This program is distributed in the hope that it will be useful,
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+//  GNU General Public License for more details.
+// 
+//  You should have received a copy of the GNU General Public License
+//  along with this program; if not, write to the Free Software
+//  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+//  02111-1307, USA.
 
 #ifndef SUPERTUX_LEVEL_H
 #define SUPERTUX_LEVEL_H
@@ -17,6 +25,7 @@
 #include "texture.h"
 #include "badguy.h"
 #include "lispreader.h"
+#include "musicref.h"
 
 class Tile;
 
@@ -60,6 +69,8 @@ class Level
 {
  public:
   Surface* img_bkgd;
+  MusicRef level_song;
+  MusicRef level_song_fast;
 
   std::string name;
   std::string author;
@@ -76,7 +87,6 @@ class Level
   int width;
   int start_pos_x;
   int start_pos_y;
-  int  endpos;
   float gravity;
 
   std::vector<BadGuyData> badguy_data;
@@ -87,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();
@@ -107,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);