projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- new more bulletprof endsequence code patch from MatzeB
[supertux.git]
/
src
/
level.h
diff --git
a/src/level.h
b/src/level.h
index
6ed8f36
..
11d8181
100644
(file)
--- a/
src/level.h
+++ b/
src/level.h
@@
-25,6
+25,7
@@
#include "texture.h"
#include "badguy.h"
#include "lispreader.h"
#include "texture.h"
#include "badguy.h"
#include "lispreader.h"
+#include "musicref.h"
class Tile;
class Tile;
@@
-68,6
+69,8
@@
class Level
{
public:
Surface* img_bkgd;
{
public:
Surface* img_bkgd;
+ MusicRef level_song;
+ MusicRef level_song_fast;
std::string name;
std::string author;
std::string name;
std::string author;
@@
-84,7
+87,6
@@
class Level
int width;
int start_pos_x;
int start_pos_y;
int width;
int start_pos_x;
int start_pos_y;
- int endpos;
float gravity;
std::vector<BadGuyData> badguy_data;
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();
Level(const std::string& subset, int level);
Level(const std::string& filename);
+ ~Level();
/** Will the Level structure with default values */
void init_defaults();
/** Will the Level structure with default values */
void init_defaults();
@@
-115,6
+118,8
@@
class Level
void load_song();
void free_song();
void load_song();
void free_song();
+ MusicRef get_level_music();
+ MusicRef get_level_music_fast();
void save(const char* subset, int level);
void save(const char* subset, int level);