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

Method isSpecialBuilding

bwapi/BWAPILIB/Source/UnitType.cpp:2493–2496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2491 this->getID() == UnitTypes::Special_Protoss_Flag_Beacon;
2492 }
2493 bool UnitType::isSpecialBuilding() const
2494 {
2495 return this->isBuilding() && this->whatBuilds().second == 0 && this->getID() != UnitTypes::Zerg_Infested_Command_Center;
2496 }
2497 bool UnitType::isSpell() const
2498 {
2499 return this->getID() == UnitTypes::Spell_Dark_Swarm ||

Callers 3

canCommandFunction · 0.80
Filters.cppFile · 0.80
onStartMethod · 0.80

Calls 3

isBuildingMethod · 0.95
whatBuildsMethod · 0.95
getIDMethod · 0.45

Tested by 1

onStartMethod · 0.64