X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Flevel.hpp;h=61bc5d61252b76bca08305abb5c121fcbff6d248;hb=9e7e803e384ed7bf0f5ccf9a4c381dd13b6a01d1;hp=7e0aba78359cba29053be7c34bd42784ccb6ad34;hpb=244488950ba1c0daf20795213619c27e6963937c;p=supertux.git diff --git a/src/level.hpp b/src/level.hpp index 7e0aba783..61bc5d612 100644 --- a/src/level.hpp +++ b/src/level.hpp @@ -30,14 +30,27 @@ namespace lisp { class Lisp; } +class TileSet; + +/** + * 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 on_menukey_script; + Sectors sectors; + Statistics stats; + TileSet *tileset; + bool free_tileset; public: Level(); @@ -60,6 +73,9 @@ public: size_t get_sector_count(); Sector* get_sector(size_t num); + const TileSet *get_tileset() const + { return tileset; } + int get_total_coins(); int get_total_badguys();