X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Flevel.hpp;h=208b64a247f7e2a4be696a86f5cd155cfcbdad6d;hb=b8e4aba5a4e2c85d59fcd618b15f679cbb18d0a2;hp=889f8f34351ac0226830efcf78df24a3241d0888;hpb=73320c3896f002f5a611d3e8b471e0cd01ca75b4;p=supertux.git diff --git a/src/level.hpp b/src/level.hpp index 889f8f343..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. @@ -79,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);