X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Flevel_subset.h;h=c6ed9a99594696609d184e38e3e89393a501fa83;hb=37e3ad0ee2ec05d6bfebf611d45046b49fa33387;hp=4ff6b4da97a81abc583405b29d0919d34b473558;hpb=7dd997b1207127e88f42915ec8bc1aa8e7599ad1;p=supertux.git diff --git a/src/level_subset.h b/src/level_subset.h index 4ff6b4da9..c6ed9a995 100644 --- a/src/level_subset.h +++ b/src/level_subset.h @@ -23,18 +23,14 @@ #include #include -#include "lispreader.h" -class Surface; +using namespace SuperTux; /** This type holds meta-information about a level-subset. It could be extended to handle manipulation of subsets. */ class LevelSubset { private: - /** Directory in which the level subset is stored */ - std::string directory; - /** Level filenames without the leading path ("level1.stl", "level3.stl", ...) */ std::vector levels; @@ -44,18 +40,20 @@ public: ~LevelSubset(); static void create(const std::string& subset_name); - void load(const char* subset); + void load(const std::string& filename); void save(); void add_level(const std::string& name); std::string get_level_filename(unsigned int i); + std::string get_worldmap_filename(); int get_num_levels() const; std::string name; std::string title; std::string description; - Surface* image; + bool hide_from_contribs; + bool has_worldmap; private: void read_info_file(const std::string& info_file);