X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Flevel.hpp;h=208b64a247f7e2a4be696a86f5cd155cfcbdad6d;hb=80acfab92ae7bdb38609bb74565ccac5dd329a2b;hp=61bc5d61252b76bca08305abb5c121fcbff6d248;hpb=0d4be1a5fadf30244c41188f114f83c818ece9bc;p=supertux.git diff --git a/src/level.hpp b/src/level.hpp index 61bc5d612..208b64a24 100644 --- a/src/level.hpp +++ b/src/level.hpp @@ -23,14 +23,15 @@ #include #include + #include "statistics.hpp" -#include "sector.hpp" namespace lisp { class Lisp; } class TileSet; +class Sector; /** * Represents a collection of Sectors running in a single GameSession. @@ -46,6 +47,7 @@ public: std::string author; std::string contact; std::string license; + std::string filename; std::string on_menukey_script; Sectors sectors; Statistics stats; @@ -78,16 +80,7 @@ public: int get_total_coins(); int get_total_badguys(); - - /** Get total number of GameObjects of given type */ - template int get_total_count() - { - int total = 0; - for(Sectors::iterator i = sectors.begin(); i != sectors.end(); ++i) { - total += (*i)->get_total_count(); - } - return total; - } + int get_total_secrets(); private: void load_old_format(const lisp::Lisp& reader);