}
void
-GameSession::action(float elapsed_time)
+GameSession::update(float elapsed_time)
{
// handle controller
if(main_controller->pressed(Controller::PAUSE_MENU))
// advance timers
if(!currentsector->player->growing_timer.started()) {
// Update Tux and the World
- currentsector->action(elapsed_time);
+ currentsector->update(elapsed_time);
}
// respawning in new sector?
{
Menu* menu = Menu::current();
if(menu) {
- menu->action();
+ menu->update();
if(menu == game_menu) {
switch (game_menu->check()) {
// Update the world
check_end_conditions();
if (end_sequence == ENDSEQUENCE_RUNNING)
- action(elapsed_time/2);
+ update(elapsed_time/2);
else if(end_sequence == NO_ENDSEQUENCE)
- action(elapsed_time);
+ update(elapsed_time);
}
else
{
}
void
+GameSession::finish()
+{
+ exit_status = ES_LEVEL_FINISHED;
+}
+
+void
GameSession::respawn(const std::string& sector, const std::string& spawnpoint)
{
newsector = sector;