X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Flevel.hpp;h=61bc5d61252b76bca08305abb5c121fcbff6d248;hb=904852246d59d4988c3e85290dd4601713e42db5;hp=eb3ba5ce3db30a73d3ee25e7a9bd5e2b78dd472b;hpb=8b67b0dc71efddc4b668bde525ba94d701f622ac;p=supertux.git diff --git a/src/level.hpp b/src/level.hpp index eb3ba5ce3..61bc5d612 100644 --- a/src/level.hpp +++ b/src/level.hpp @@ -30,6 +30,8 @@ namespace lisp { class Lisp; } +class TileSet; + /** * Represents a collection of Sectors running in a single GameSession. * @@ -38,14 +40,17 @@ class Lisp; class Level { public: + typedef std::vector Sectors; + std::string name; std::string author; std::string contact; std::string license; std::string on_menukey_script; - typedef std::vector Sectors; - Sectors sectors; - Statistics stats; + Sectors sectors; + Statistics stats; + TileSet *tileset; + bool free_tileset; public: Level(); @@ -68,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();