X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgame_session.hpp;h=3c5e5dbab5ce26cf80f98080cedf2ae5383c1c54;hb=339968d0eb222f5cad1397580631ab44acf40b10;hp=92a0b69875d583c45588100bf08c33735b3bb915;hpb=a113d3bd1feddd510e3b2852b0d42522735eee40;p=supertux.git diff --git a/src/game_session.hpp b/src/game_session.hpp index 92a0b6987..3c5e5dbab 100644 --- a/src/game_session.hpp +++ b/src/game_session.hpp @@ -62,6 +62,12 @@ public: void finish(bool win = true); void respawn(const std::string& sectorname, const std::string& spawnpointname); void set_reset_point(const std::string& sectorname, const Vector& pos); + std::string get_reset_point_sectorname() + { return reset_sector; } + + Vector get_reset_point_pos() + { return reset_pos; } + void display_info_box(const std::string& text); Sector* get_current_sector() @@ -82,12 +88,6 @@ public: void toggle_pause(); - /** - * Allows adjusting the game speed with a factor. 1.0 means normal speed - * 0.0 means the game is stopped. - */ - void adjust_game_speed(float factor); - private: void check_end_conditions(); void process_events(); @@ -133,9 +133,6 @@ private: std::string reset_sector; Vector reset_pos; - /// speed factos - float speed_factor; - // the sector and spawnpoint we should spawn after this frame std::string newsector; std::string newspawnpoint;