X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Flevel.hpp;h=889f8f34351ac0226830efcf78df24a3241d0888;hb=41b1a29c10b9c5e799d57356eee0d1701c3828b4;hp=1ab7448903a0c878bc53c88b628d781218ceedc2;hpb=77d6c22146b06e5737b905795c8d7aab3f146527;p=supertux.git diff --git a/src/level.hpp b/src/level.hpp index 1ab744890..889f8f343 100644 --- a/src/level.hpp +++ b/src/level.hpp @@ -30,15 +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(); @@ -61,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();