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

Method isBuilding

bwapi/BWAPILIB/Source/UnitType.cpp:2452–2455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2450 return !!(UnitPrototypeFlags::unitFlags[this->getID()] & UnitPrototypeFlags::Cloakable);
2451 }
2452 bool UnitType::isBuilding() const
2453 {
2454 return !!(UnitPrototypeFlags::unitFlags[this->getID()] & UnitPrototypeFlags::Building);
2455 }
2456 bool UnitType::isAddon() const
2457 {
2458 return !!(UnitPrototypeFlags::unitFlags[this->getID()] & UnitPrototypeFlags::Addon);

Callers 15

isSpecialBuildingMethod · 0.95
hasPowerFunction · 0.80
canBuildHereFunction · 0.80
canCommandFunction · 0.80
canCommandGroupedFunction · 0.80
canTargetUnitFunction · 0.80
canAttackUnitFunction · 0.80
canBuildFunction · 0.80
canBuildAddonFunction · 0.80
canTrainFunction · 0.80
canMorphFunction · 0.80
canSetRallyPositionFunction · 0.80

Calls 1

getIDMethod · 0.45

Tested by 4

onStartMethod · 0.64
updateMethod · 0.64
startMethod · 0.64
startMethod · 0.64