X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgame_session.hpp;h=ec3fffbe32667c7f0a1c0a11af9197136f913e9c;hb=198f758764fff064a47630b5d0f1e3d6aabe95a8;hp=fdb8f4f965f0ac9f82174e9d1d2313aaad35a214;hpb=9d05abe97c11bec660967594ca889f89338ab343;p=supertux.git diff --git a/src/game_session.hpp b/src/game_session.hpp index fdb8f4f96..ec3fffbe3 100644 --- a/src/game_session.hpp +++ b/src/game_session.hpp @@ -35,8 +35,7 @@ class CodeController; class Menu; /** - * The GameSession class controlls the controll flow of the Game (the part - * where you actually play a level) + * Screen that runs a Level, where Players run and jump through Sectors. */ class GameSession : public Screen { @@ -67,8 +66,6 @@ public: Vector get_reset_point_pos() { return reset_pos; } - void display_info_box(const std::string& text); - Sector* get_current_sector() { return currentsector; } @@ -87,12 +84,21 @@ public: void toggle_pause(); + /** + * Enters or leaves level editor mode + */ + void set_editmode(bool edit_mode = true); + + /** + * Forces all Players to enter ghost mode + */ + void force_ghost_mode(); + private: void check_end_conditions(); void process_events(); void capture_demo_step(); - void levelintro(); void drawstatus(DrawingContext& context); void draw_pause(DrawingContext& context); @@ -139,6 +145,9 @@ private: std::auto_ptr