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

Method isNeutral

bwapi/BWAPILIB/Source/UnitType.cpp:2464–2468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2462 return !!(UnitPrototypeFlags::unitFlags[this->getID()] & UnitPrototypeFlags::FlyingBuilding);
2463 }
2464 bool UnitType::isNeutral() const
2465 {
2466 return this->getRace() == Races::None &&
2467 (this->isCritter() || this->isResourceContainer() || this->isSpell());
2468 }
2469 bool UnitType::isHero() const
2470 {
2471 return !!(UnitPrototypeFlags::unitFlags[this->getID()] & UnitPrototypeFlags::Hero) ||

Callers 9

canRightClickUnitFunction · 0.45
canRightClickUnitGroupedFunction · 0.45
canUseTechUnitFunction · 0.45
Filters.cppFile · 0.45
mainFunction · 0.45
onStartMethod · 0.45
executeMethod · 0.45
onUnitCreateMethod · 0.45
onUnitMorphMethod · 0.45

Calls 4

getRaceMethod · 0.95
isCritterMethod · 0.95
isResourceContainerMethod · 0.95
isSpellMethod · 0.95

Tested by 1

onStartMethod · 0.36