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

Method restartGame

bwapi/BWAPI/Source/BWAPI/GameImpl.cpp:570–582  ·  view source on GitHub ↗

--------------------------------------------- RESTART GAME -----------------------------------------------

Source from the content-addressed store, hash-verified

568 }
569 //--------------------------------------------- RESTART GAME -----------------------------------------------
570 void GameImpl::restartGame()
571 {
572 // Restarts the current match
573 // Does not work on Battle.net
574 if ( this->isMultiplayer() )
575 {
576 this->setLastError(Errors::Invalid_Parameter);
577 return;
578 }
579
580 this->setLastError();
581 QUEUE_COMMAND(BW::Orders::RestartGame);
582 }
583 //--------------------------------------------- SET ALLIANCE -----------------------------------------------
584 bool GameImpl::setAlliance(BWAPI::Player player, bool allied, bool alliedVictory)
585 {

Callers 1

processCommandsMethod · 0.45

Calls 2

isMultiplayerMethod · 0.95
setLastErrorMethod · 0.95

Tested by

no test coverage detected