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

Method isFlagBeacon

bwapi/BWAPILIB/Source/UnitType.cpp:2487–2492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2485 this->getID() == UnitTypes::Special_Protoss_Beacon;
2486 }
2487 bool UnitType::isFlagBeacon() const
2488 {
2489 return this->getID() == UnitTypes::Special_Zerg_Flag_Beacon ||
2490 this->getID() == UnitTypes::Special_Terran_Flag_Beacon ||
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;

Callers 4

canBuildHereFunction · 0.80
canCommandFunction · 0.80
canPlaceCOPFunction · 0.80
Filters.cppFile · 0.80

Calls 1

getIDMethod · 0.45

Tested by

no test coverage detected