fix cr/lfs and remove trailing whitespaces...
[supertux.git] / src / game_session.hpp
index 59a4642..92a0b69 100644 (file)
@@ -63,7 +63,7 @@ public:
   void respawn(const std::string& sectorname, const std::string& spawnpointname);
   void set_reset_point(const std::string& sectorname, const Vector& pos);
   void display_info_box(const std::string& text);
-  
+
   Sector* get_current_sector()
   { return currentsector; }
 
@@ -82,6 +82,12 @@ public:
 
   void toggle_pause();
 
+  /**
+   * Allows adjusting the game speed with a factor. 1.0 means normal speed
+   * 0.0 means the game is stopped.
+   */
+  void adjust_game_speed(float factor);
+
 private:
   void check_end_conditions();
   void process_events();
@@ -127,6 +133,9 @@ private:
   std::string reset_sector;
   Vector reset_pos;
 
+  /// speed factos
+  float speed_factor;
+
   // the sector and spawnpoint we should spawn after this frame
   std::string newsector;
   std::string newspawnpoint;
@@ -146,4 +155,3 @@ private:
 };
 
 #endif /*SUPERTUX_GAMELOOP_H*/
-