public:
DrawingContext* context;
- Timer time_left;
GameSession(const std::string& levelfile, GameSessionMode mode,
Statistics* statistics=0);
{ current_ = this; }
static GameSession* current() { return current_; }
- /// ends the level as finished
- void finish();
+ /// ends the current level
+ void finish(bool win = true);
void respawn(const std::string& sectorname,
const std::string& spawnpointname);
void set_reset_point(const std::string& sectorname,
void restart_level();
void check_end_conditions();
- void start_timers();
void process_events();
void capture_demo_step();