MCPcopy Create free account
hub / github.com/EasyRPG/Player / CheckGameOver

Method CheckGameOver

src/game_interpreter.cpp:551–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549}
550
551bool Game_Interpreter::CheckGameOver() {
552 if (!Game_Battle::IsBattleRunning() && !Main_Data::game_party->IsAnyActive()) {
553 // Empty party is allowed
554 if (Main_Data::game_party->GetBattlerCount() > 0) {
555 Scene::instance->SetRequestedScene(std::make_shared<Scene_Gameover>());
556 return true;
557 }
558 }
559 return false;
560}
561
562void Game_Interpreter::SkipToNextConditional(std::initializer_list<Cmd> codes, int indent) {
563 auto& frame = GetFrame();

Callers

nothing calls this directly

Calls 3

IsAnyActiveMethod · 0.80
SetRequestedSceneMethod · 0.80
GetBattlerCountMethod · 0.45

Tested by

no test coverage detected