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

Method clearAll

bwapi/BWAPI/Source/BWAPI/Server.cpp:472–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470 data->botAPM_selects = 0;
471 }
472 void Server::clearAll()
473 {
474 //clear force info
475 data->forceCount = 0;
476 forceVector.clear();
477 forceLookup.clear();
478
479 //clear player info
480 data->playerCount = 0;
481 playerVector.clear();
482 playerLookup.clear();
483
484 //clear unit info
485 data->initialUnitCount = 0;
486 unitVector.clear();
487 unitLookup.clear();
488 }
489
490 void Server::updateSharedMemory()
491 {

Callers 1

initializeDataMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected