7 // Author: Tobias Glaesser <tobi.web@gmx.de>, (C) 2003
9 // Copyright: See COPYING file that comes with this distribution
13 #ifndef SUPERTUX_LEVEL_H
14 #define SUPERTUX_LEVEL_H
18 #include "lispreader.h"
20 /* This type holds meta-information about a level-subset. */
21 /* It could be extended to handle manipulation of subsets. */
26 static void create(const std::string& subset_name);
27 void load(char *subset);
33 std::string description;
38 void parse(lisp_object_t* cursor);
41 #define LEVEL_NAME_MAX 20
47 std::string song_title;
48 std::string bkgd_image;
49 std::string particle_system;
50 unsigned int* bg_tiles[15]; /* Tiles in the background */
51 unsigned int* ia_tiles[15]; /* Tiles which can interact in the game (solids for example)*/
52 unsigned int* dn_tiles[15]; /* Dynamic tiles (bad guys and moving platforms for example)*/
53 unsigned int* fg_tiles[15]; /* Tiles in the foreground */
69 extern texture_type img_bkgd, img_bkgd_tile[2][4], img_solid[4], img_brick[2];
71 void level_default (st_level* plevel);
72 int level_load (st_level* plevel, const char * subset, int level);
73 void level_parse (st_level* plevel, lisp_object_t* cursor);
74 int level_load (st_level* plevel, const char* filename);
75 void level_save (st_level* plevel, const char * subset, int level);
76 void level_free (st_level* plevel);
77 void level_load_gfx (st_level* plevel);
78 void level_change (st_level* plevel, float x, float y, int tm, unsigned int c);
79 void level_change_size (st_level* plevel, int new_width);
80 void level_load_song(st_level* plevel);
81 void level_free_gfx();
82 void level_load_image(texture_type* ptexture, std::string theme, const char * file, int use_alpha);
83 void level_free_song(void);
85 #endif /*SUPERTUX_LEVEL_H*/