Splited out level stuff from SpecialTile to a Level struct (similar to old one).
[supertux.git] / src / sector.h
index ffd409e..7b6c6ca 100644 (file)
@@ -56,6 +56,11 @@ struct SpawnPoint
   Vector pos;
 };
 
+enum {
+  NONE_ENDSEQ_ANIM,
+  FIREWORKS_ENDSEQ_ANIM
+  };
+
 /** This class holds a sector (a part of a level) and all the game objects
  * (badguys, player, background, tilemap, ...)
  */
@@ -108,6 +113,7 @@ public:
   bool add_bullet(const Vector& pos, float xm, Direction dir);
   bool add_smoke_cloud(const Vector& pos);
   bool add_particles(const Vector& epicenter, const Vector& velocity, const Vector& acceleration, int number, Color color, int size, int life_time);
+  void add_floating_text(const Vector& pos, const std::string& text);
                                                                                 
   /** Try to grab the coin at the given coordinates */
   void trygrabdistro(const Vector& pos, int bounciness);
@@ -126,10 +132,17 @@ public:
       player to play the same level in a different way :) */
   void do_vertical_flip();
 
+  /** Get end sequence animation */
+  int end_sequence_animation()
+    { return end_sequence_animation_type; }
+
   /** @evil@ */
   static Sector* current()
   { return _current; }
 
+  /** Get total number of some stuff */
+  int get_total_badguys();
+
 private:
   void load_music();
   
@@ -140,6 +153,8 @@ private:
   MusicRef level_song;
   MusicRef level_song_fast;
 
+  int end_sequence_animation_type;
+
 public:
   std::string song_title;
   float gravity;
@@ -176,7 +191,7 @@ private:
 
   int distro_counter;
   bool counting_distros;
-  int currentmusic;        
+  int currentmusic;
 };
 
 #endif