+void invincible()
+{
+ if (!validate_sector_player()) return;
+ ::Player* tux = Sector::current()->player;
+ tux->invincible_timer.start(10000);
+}
+
+void ghost()
+{
+ if (!validate_sector_player()) return;
+ ::Player* tux = Sector::current()->player;
+ tux->set_ghost_mode(true);
+}
+
+void mortal()
+{
+ if (!validate_sector_player()) return;
+ ::Player* tux = Sector::current()->player;
+ tux->invincible_timer.stop();
+ tux->set_ghost_mode(false);
+}
+
+void restart()
+{
+ if (GameSession::current() == 0)
+ {
+ log_info << "No game session" << std::endl;
+ return;
+ }
+ GameSession::current()->restart_level();
+}
+
+void whereami()
+{
+ if (!validate_sector_player()) return;
+ ::Player* tux = Sector::current()->player;
+ log_info << "You are at x " << tux->get_pos().x << ", y " << tux->get_pos().y << std::endl;
+}
+
+void gotoend()
+{
+ if (!validate_sector_player()) return;
+ ::Player* tux = Sector::current()->player;
+ tux->move(Vector(
+ (Sector::current()->get_width()) - (SCREEN_WIDTH*2), 0));
+ Sector::current()->camera->reset(
+ Vector(tux->get_pos().x, tux->get_pos().y));
+}
+
+void camera()
+{
+ if (!validate_sector_player()) return;
+ log_info << "Camera is at " << Sector::current()->camera->get_translation().x << "," << Sector::current()->camera->get_translation().y << std::endl;
+}
+
+void set_gamma(float gamma) {
+ SDL_SetGamma(gamma, gamma, gamma);
+}
+
+void quit()
+{
+ main_loop->quit();
+}
+
+int rand()
+{
+ return systemRandom.rand();
+}
+
+void set_game_speed(float speed)
+{
+ ::game_speed = speed;
+}
+
+}