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

Method isAddon

bwapi/BWAPILIB/Source/UnitType.cpp:2456–2459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2454 return !!(UnitPrototypeFlags::unitFlags[this->getID()] & UnitPrototypeFlags::Building);
2455 }
2456 bool UnitType::isAddon() const
2457 {
2458 return !!(UnitPrototypeFlags::unitFlags[this->getID()] & UnitPrototypeFlags::Addon);
2459 }
2460 bool UnitType::isFlyingBuilding() const
2461 {
2462 return !!(UnitPrototypeFlags::unitFlags[this->getID()] & UnitPrototypeFlags::FlyingBuilding);

Callers 12

canBuildHereFunction · 0.80
canMakeFunction · 0.80
canBuildAddonFunction · 0.80
canTrainFunction · 0.80
executeCommandMethod · 0.80
updateDataMethod · 0.80
ReserveAllStructuresFunction · 0.80
Filters.cppFile · 0.80
startMethod · 0.80
updateMethod · 0.80
startMethod · 0.80
updateMethod · 0.80

Calls 1

getIDMethod · 0.45

Tested by 4

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