New grow and skid sounds from remaxim
[supertux.git] / src / level.hpp
index 61bc5d6..208b64a 100644 (file)
 
 #include <vector>
 #include <string>
+
 #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<class T> int get_total_count()
-  {
-    int total = 0;
-    for(Sectors::iterator i = sectors.begin(); i != sectors.end(); ++i) {
-      total += (*i)->get_total_count<T>();
-    }
-    return total;
-  }
+  int get_total_secrets();
 
 private:
   void load_old_format(const lisp::Lisp& reader);