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

Method isPowerup

bwapi/BWAPILIB/Source/UnitType.cpp:2475–2480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2473 this->getID() == UnitTypes::Terran_Civilian;
2474 }
2475 bool UnitType::isPowerup() const
2476 {
2477 return this->getID() == UnitTypes::Powerup_Uraj_Crystal ||
2478 this->getID() == UnitTypes::Powerup_Khalis_Crystal ||
2479 (this->getID() >= UnitTypes::Powerup_Flag && this->getID() < UnitTypes::None);
2480 }
2481 bool UnitType::isBeacon() const
2482 {
2483 return this->getID() == UnitTypes::Special_Zerg_Beacon ||

Callers 2

canCommandFunction · 0.80
Filters.cppFile · 0.80

Calls 1

getIDMethod · 0.45

Tested by

no test coverage detected