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

Method isRefinery

bwapi/BWAPILIB/Source/UnitType.cpp:2416–2427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2414 return !!(UnitPrototypeFlags::unitFlags[this->getID()] & UnitPrototypeFlags::ResourceDepot);
2415 }
2416 bool UnitType::isRefinery() const
2417 {
2418 switch ( *this )
2419 {
2420 case UnitTypes::Enum::Terran_Refinery:
2421 case UnitTypes::Enum::Zerg_Extractor:
2422 case UnitTypes::Enum::Protoss_Assimilator:
2423 return true;
2424 default:
2425 return false;
2426 }
2427 }
2428 bool UnitType::isWorker() const
2429 {
2430 return !!(UnitPrototypeFlags::unitFlags[this->getID()] & UnitPrototypeFlags::Worker);

Callers 10

canBuildHereFunction · 0.80
canGatherFunction · 0.80
isGatheringGasMethod · 0.80
AddUnitMethod · 0.80
Filters.cppFile · 0.80
canBuildHereWithSpaceMethod · 0.80
updateMethod · 0.80
startMethod · 0.80
onMatchFrameMethod · 0.80
executeMethod · 0.80

Calls

no outgoing calls

Tested by 2

updateMethod · 0.64
startMethod · 0.64