X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsupertux%2Fgame_session.hpp;h=22160a39b733bea4be0ce32b6742ec422030613c;hb=42de210bd2cb0e773ce0b7bd6af7bb3f456030bc;hp=57d613f2c6799cdfb26a73bdbac80e2ccdbb6add;hpb=aac796a9220cd785c3e262d23a4dbb5380dd095f;p=supertux.git diff --git a/src/supertux/game_session.hpp b/src/supertux/game_session.hpp index 57d613f2c..22160a39b 100644 --- a/src/supertux/game_session.hpp +++ b/src/supertux/game_session.hpp @@ -29,6 +29,7 @@ class Level; class Sector; class Statistics; +class PlayerStatus; class DrawingContext; class CodeController; class Menu; @@ -40,7 +41,7 @@ class GameSession : public Screen, public Currenton { public: - GameSession(const std::string& levelfile, Statistics* statistics = NULL); + GameSession(const std::string& levelfile, PlayerStatus* player_status, Statistics* statistics = NULL); ~GameSession(); void record_demo(const std::string& filename); @@ -67,6 +68,9 @@ public: Level* get_current_level() { return level.get(); } + PlayerStatus* get_player_status() + { return player_status; } + void start_sequence(const std::string& sequencename); /** @@ -129,6 +133,7 @@ private: std::string newspawnpoint; Statistics* best_level_statistics; + PlayerStatus* player_status; std::ostream* capture_demo_stream; std::string capture_file;