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

Method isHero

bwapi/BWAPILIB/Source/UnitType.cpp:2469–2474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2467 (this->isCritter() || this->isResourceContainer() || this->isSpell());
2468 }
2469 bool UnitType::isHero() const
2470 {
2471 return !!(UnitPrototypeFlags::unitFlags[this->getID()] & UnitPrototypeFlags::Hero) ||
2472 this->getID() == UnitTypes::Hero_Dark_Templar ||
2473 this->getID() == UnitTypes::Terran_Civilian;
2474 }
2475 bool UnitType::isPowerup() const
2476 {
2477 return this->getID() == UnitTypes::Powerup_Uraj_Crystal ||

Callers 5

maxEnergyMethod · 0.95
Military.cppFile · 0.80
Filters.cppFile · 0.80
UseTechTestMethod · 0.80

Calls 1

getIDMethod · 0.45

Tested by 1

UseTechTestMethod · 0.64