X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Flevel.hpp;h=208b64a247f7e2a4be696a86f5cd155cfcbdad6d;hb=b029182b66e1f36e8eb7a1d8d23d26d475dec45f;hp=18d180312a3bdf58dc8c731ea297efd2174d2662;hpb=5b7f9214cb929399f1a855ef5807018a9447d510;p=supertux.git diff --git a/src/level.hpp b/src/level.hpp index 18d180312..208b64a24 100644 --- a/src/level.hpp +++ b/src/level.hpp @@ -1,7 +1,7 @@ // $Id$ -// +// // SuperTux -// Copyright (C) 2004 SuperTux Development Team, see AUTHORS for details +// Copyright (C) 2006 Matthias Braun // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -12,7 +12,7 @@ // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -// +// // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA @@ -24,19 +24,35 @@ #include #include -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; + 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(); @@ -59,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);