X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsupertux%2Fgame_session.hpp;h=5356ee130d61a578d01b4db972d5f2705b75f514;hb=590805b8b24971ca43f777abfbf79fce21792804;hp=4609f8b4a5ebee75cc79e8ab82681829c57ff7ac;hpb=5c7020e504303cf18e472283ab614ef08ad43b2c;p=supertux.git diff --git a/src/supertux/game_session.hpp b/src/supertux/game_session.hpp index 4609f8b4a..5356ee130 100644 --- a/src/supertux/game_session.hpp +++ b/src/supertux/game_session.hpp @@ -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&);