MCPcopy Create free account
hub / github.com/bwapi/bwapi / leaveGame

Method leaveGame

bwapi/BWAPI/Source/BWAPI/GameImpl.cpp:560–568  ·  view source on GitHub ↗

---------------------------------------------- LEAVE GAME ------------------------------------------------

Source from the content-addressed store, hash-verified

558 }
559 //---------------------------------------------- LEAVE GAME ------------------------------------------------
560 void GameImpl::leaveGame()
561 {
562 // Leaves the current game. Moves directly to the post-game score screen
563 this->setLastError();
564 if ( !this->tournamentCheck(Tournament::LeaveGame) )
565 return;
566 BW::BWDATA::GameState = 0;
567 BW::BWDATA::gwNextGameMode = 6;
568 }
569 //--------------------------------------------- RESTART GAME -----------------------------------------------
570 void GameImpl::restartGame()
571 {

Callers 3

parseTextMethod · 0.95
processCommandsMethod · 0.45
onFrameMethod · 0.45

Calls 2

setLastErrorMethod · 0.95
tournamentCheckMethod · 0.95

Tested by

no test coverage detected