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

Method tournamentCheck

bwapi/BWAPI/Source/BWAPI/GameInternals.cpp:273–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271 return BW::BWDATA::g_LocalHumanID;
272 }
273 bool GameImpl::tournamentCheck(Tournament::ActionID type, void *parameter)
274 {
275 if ( this->tournamentController && !isTournamentCall )
276 {
277 isTournamentCall = true;
278 bool allow = this->tournamentController->onAction(type, parameter);
279 isTournamentCall = false;
280 return allow;
281 }
282 return true;
283 }
284 void GameImpl::initializeData()
285 {
286 // Delete forces

Callers 13

enableFlagMethod · 0.95
vPrintfMethod · 0.95
vSendTextExMethod · 0.95
pauseGameMethod · 0.95
resumeGameMethod · 0.95
leaveGameMethod · 0.95
setLocalSpeedMethod · 0.95
setFrameSkipMethod · 0.95
setLatComMethod · 0.95
setMapMethod · 0.95
setTextSizeMethod · 0.95

Calls 1

onActionMethod · 0.45

Tested by

no test coverage detected