Only pause game on focus lose when game session is active
[supertux.git] / src / supertux / game_session.hpp
index 4609f8b..5356ee1 100644 (file)
@@ -79,10 +79,11 @@ public:
    * resources for the current level/world
    */
   std::string get_working_directory();
-  int restart_level();
+  int restart_level(bool after_death = false);
 
   void toggle_pause();
   void abort_level();
+  bool is_active() const;
 
   /**
    * Enters or leaves level editor mode
@@ -151,6 +152,8 @@ private:
   BonusType bonus_at_start; /** What bonuses does the player have at the start */
   int max_fire_bullets_at_start; /** How many fire bullets does the player have */
   int max_ice_bullets_at_start; /** How many ice bullets does the player have */
+    
+  bool active; /** Game active? **/
 
 private:
   GameSession(const GameSession&);