X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=inline;f=src%2Fgameloop.h;h=ea1df562ae80b9af0496f970bbb5c68a53b9864c;hb=9599042661b468aae7bd34dca05441c0ebc93ad7;hp=d1898be8ff736fd89e83296cbef1aee2e9810867;hpb=5a542dea3c6043703683b68fcaa774f6cb0d9127;p=supertux.git diff --git a/src/gameloop.h b/src/gameloop.h index d1898be8f..ea1df562a 100644 --- a/src/gameloop.h +++ b/src/gameloop.h @@ -79,7 +79,6 @@ private: bool game_pause; std::string levelfile; - bool flip_level; // the sector and spawnpoint we shoudl spawn after this frame std::string newsector; @@ -93,8 +92,7 @@ public: DrawingContext* context; Timer2 time_left; - GameSession(const std::string& levelfile, int mode, bool flip_level_ = false, - Statistics* statistics = 0); + GameSession(const std::string& levelfile, int mode, Statistics* statistics=0); ~GameSession(); /** Enter the busy loop */ @@ -131,6 +129,7 @@ private: void check_end_conditions(); void start_timers(); void process_events(); + void handle_cheats(); void levelintro(); void drawstatus(DrawingContext& context);