std::string get_working_directory();
void restart_level(bool fromBeginning = true);
+ void toggle_pause();
+
private:
void check_end_conditions();
void process_events();
void drawstatus(DrawingContext& context);
void draw_pause(DrawingContext& context);
+ HSQUIRRELVM run_script(std::istream& in, const std::string& sourcename);
void on_escape_press();
void process_menu();
std::auto_ptr<Level> level;
std::auto_ptr<Surface> statistics_backdrop;
+ // scripts
+ typedef std::vector<HSQOBJECT> ScriptList;
+ ScriptList scripts;
+
Sector* currentsector;
int levelnb;
CodeController* demo_controller;
std::auto_ptr<Menu> game_menu;
+
+ float play_time; /**< total time in seconds that this session ran interactively */
};
#endif /*SUPERTUX_GAMELOOP_H*/