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

Method getWorker

bwapi/BWAPILIB/Source/Race.cpp:72–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 const Race::set raceSet = { Zerg, Terran, Protoss, None, Unknown };
71 }
72 UnitType Race::getWorker() const
73 {
74 return RaceInternal::workerTypes[this->getID()];
75 }
76 UnitType Race::getResourceDepot() const
77 {
78 return RaceInternal::baseTypes[this->getID()];

Callers 5

executeMethod · 0.80
writeRaceInfoFunction · 0.80
mainFunction · 0.80
startMethod · 0.80
onFrameMethod · 0.80

Calls 1

getIDMethod · 0.45

Tested by 1

startMethod · 0.64