X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Flevel.hpp;h=208b64a247f7e2a4be696a86f5cd155cfcbdad6d;hb=b8e4aba5a4e2c85d59fcd618b15f679cbb18d0a2;hp=f91ab3c232ae5ac7bbd99511ae6be1dae6d33c72;hpb=52de79ad8301a395a5a2999ecbdf31731c0b65f8;p=supertux.git diff --git a/src/level.hpp b/src/level.hpp index f91ab3c23..208b64a24 100644 --- a/src/level.hpp +++ b/src/level.hpp @@ -23,22 +23,36 @@ #include #include -#include "statistics.hpp" -class Sector; +#include "statistics.hpp" namespace lisp { class Lisp; } +class TileSet; +class Sector; + +/** + * Represents a collection of Sectors running in a single GameSession. + * + * Each Sector in turn contains GameObjects, e.g. Badguys and Players. + */ class Level { public: + typedef std::vector Sectors; + std::string name; std::string author; - typedef std::vector Sectors; - Sectors sectors; - Statistics stats; + std::string contact; + std::string license; + std::string filename; + std::string on_menukey_script; + Sectors sectors; + Statistics stats; + TileSet *tileset; + bool free_tileset; public: Level(); @@ -61,8 +75,12 @@ public: size_t get_sector_count(); Sector* get_sector(size_t num); - int get_total_badguys(); + const TileSet *get_tileset() const + { return tileset; } + int get_total_coins(); + int get_total_badguys(); + int get_total_secrets(); private: void load_old_format(const lisp::Lisp& reader);