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

Method isSpellcaster

bwapi/BWAPILIB/Source/UnitType.cpp:2380–2383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2378 return !!(UnitPrototypeFlags::unitFlags[this->getID()] & UnitPrototypeFlags::RegeneratesHP);
2379 }
2380 bool UnitType::isSpellcaster() const
2381 {
2382 return !!(UnitPrototypeFlags::unitFlags[this->getID()] & UnitPrototypeFlags::Spellcaster);
2383 }
2384 bool UnitType::hasPermanentCloak() const
2385 {
2386 return !!(UnitPrototypeFlags::unitFlags[this->getID()] & UnitPrototypeFlags::PermanentCloak);

Callers 4

maxEnergyMethod · 0.95
canUseTechUnitFunction · 0.80
updateDataMethod · 0.80
Filters.cppFile · 0.80

Calls 1

getIDMethod · 0.45

Tested by

no test coverage detected