X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Flevel.hpp;h=889f8f34351ac0226830efcf78df24a3241d0888;hb=f6504762d01217fbbba3923b8e7f3b84d30c088c;hp=da2fdf450e70b2c0e173ba3542ea6ff91928a84d;hpb=fea3446f05e1e7673607b835c269d3e8d1929ab3;p=supertux.git diff --git a/src/level.hpp b/src/level.hpp index da2fdf450..889f8f343 100644 --- a/src/level.hpp +++ b/src/level.hpp @@ -30,17 +30,28 @@ 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; std::string contact; std::string license; + std::string filename; std::string on_menukey_script; - typedef std::vector Sectors; - Sectors sectors; - Statistics stats; + Sectors sectors; + Statistics stats; + TileSet *tileset; + bool free_tileset; public: Level(); @@ -63,6 +74,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();