X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgame_session.hpp;h=edae3a632660dfbe64f860fb940a57bb68255b04;hb=4053ea240a0dc47f360a7293c0097f1cc515137c;hp=fdb8f4f965f0ac9f82174e9d1d2313aaad35a214;hpb=9d05abe97c11bec660967594ca889f89338ab343;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 game_menu; float play_time; /**< total time in seconds that this session ran interactively */ + + bool edit_mode; /**< true if GameSession runs in level editor mode */ }; #endif /*SUPERTUX_GAMELOOP_H*/