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

Method isWorker

bwapi/BWAPILIB/Source/UnitType.cpp:2428–2431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2426 }
2427 }
2428 bool UnitType::isWorker() const
2429 {
2430 return !!(UnitPrototypeFlags::unitFlags[this->getID()] & UnitPrototypeFlags::Worker);
2431 }
2432 bool UnitType::requiresPsi() const
2433 {
2434 return !!(UnitPrototypeFlags::unitFlags[this->getID()] & UnitPrototypeFlags::RequiresPsi);

Callers 12

canGatherFunction · 0.80
canReturnCargoFunction · 0.80
Military.cppFile · 0.80
onUnitCreateMethod · 0.80
AddUnitMethod · 0.80
updateDataMethod · 0.80
Filters.cppFile · 0.80
mainFunction · 0.80
startMethod · 0.80
startMethod · 0.80
executeMethod · 0.80
onFrameMethod · 0.80

Calls 1

getIDMethod · 0.45

Tested by 2

startMethod · 0.64
startMethod · 0.64