X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgame_session.hpp;h=edae3a632660dfbe64f860fb940a57bb68255b04;hb=d427db3e7c37d524e540511dd8cfce6e985bf32b;hp=fdb8f4f965f0ac9f82174e9d1d2313aaad35a214;hpb=fea3446f05e1e7673607b835c269d3e8d1929ab3;p=supertux.git diff --git a/src/game_session.hpp b/src/game_session.hpp index fdb8f4f96..edae3a632 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,6 +84,16 @@ 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(); @@ -139,6 +146,8 @@ private: std::auto_ptr