-int level_load (st_level* plevel, const char* filename);
-void level_save (st_level* plevel, const char * subset, int level);
-void level_load_gfx (st_level* plevel);
-void level_change (st_level* plevel, float x, float y, int tm, unsigned int c);
-void level_change_size (st_level* plevel, int new_width);
-void level_load_song(st_level* plevel);
-void level_free_gfx();
-void level_load_image(texture_type* ptexture, std::string theme, const char * file, int use_alpha);
-void level_free_song(void);
-
-/** Return the id of the tile at the given x/y coordinates */
-unsigned int gettileid(float x, float y);
-
-/** Return a pointer to the tile at the given x/y coordinates */
-Tile* gettile(float x, float y);
-
-// Some little helper function to check for tile properties
-bool issolid(float x, float y);
-bool isbrick(float x, float y);
-bool isice(float x, float y);
-bool isfullbox(float x, float y);
+ // loads a levelfile
+ void load(const std::string& filename);
+ void save(const std::string& filename);
+
+ EndSequenceType get_end_sequence_type() const
+ { return end_sequence_type; }
+
+ const std::string& get_name() const
+ { return name; }
+
+ const std::string& get_author() const
+ { return author; }
+
+ void add_sector(Sector* sector);
+
+ Sector* get_sector(const std::string& name);
+
+ Sector* get_next_sector(const Sector* sector);
+ Sector* get_previous_sector(const Sector* sector);
+
+ int get_total_sectors();
+
+ int get_total_badguys();
+ int get_total_coins();
+
+private:
+ void load_old_format(const lisp::Lisp& reader);
+};