17 #ifndef HEADER_SUPERTUX_SUPERTUX_GAME_SESSION_RECORDER_HPP 18 #define HEADER_SUPERTUX_SUPERTUX_GAME_SESSION_RECORDER_HPP 23 #include "control/codecontroller.hpp" 31 void start_recording();
32 void record_demo(
const std::string& filename);
33 int get_demo_random_seed(
const std::string& filename)
const;
34 void play_demo(
const std::string& filename);
35 void process_events();
41 bool is_playing_demo()
const {
return m_playing; }
44 void capture_demo_step();
47 std::string m_capture_file;
48 std::unique_ptr<std::ostream> m_capture_demo_stream;
49 std::unique_ptr<std::istream> m_playback_demo_stream;
50 std::unique_ptr<CodeController> m_demo_controller;
Definition: game_session_recorder.hpp:25
void reset_demo_controller()
Re-sets the demo controller in case the sector (and thus the Player instance) changes.
Definition: game_session_recorder.cpp:128