X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Flevel.h;h=dfb1c1e09b2a62cc8afd677fa7a8727e98cc5a49;hb=aadd77c676baae31db931c8e64cd1713c24289d5;hp=682c5692553ddde8c2be6b43cff67369eab07487;hpb=945d6ee4488595f3a8f7180b66b53ff684ab94e4;p=supertux.git diff --git a/src/level.h b/src/level.h index 682c56925..dfb1c1e09 100644 --- a/src/level.h +++ b/src/level.h @@ -50,16 +50,11 @@ enum TileMapType { TM_FG }; -extern texture_type img_bkgd; - -/* -extern texture_type img_bkgd_tile[2][4]; -extern texture_type img_solid[4]; -extern texture_type img_brick[2]; -*/ class Level { public: + texture_type img_bkgd; + std::string name; std::string theme; std::string song_title; @@ -92,7 +87,9 @@ class Level int load(const std::string& filename); void load_gfx(); + void load_song(); + void free_song(); void save(const char* subset, int level); @@ -104,10 +101,11 @@ class Level /** Return the id of the tile at position x/y */ unsigned int gettileid(float x, float y); + + void free_gfx(); + + void load_image(texture_type* ptexture, std::string theme, const char * file, int use_alpha); }; -void level_load_image(texture_type* ptexture, std::string theme, const char * file, int use_alpha); -void level_free_song(); -void level_free_gfx(); #endif /*SUPERTUX_LEVEL_H*/