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

Method canBuildAddon

bwapi/BWAPILIB/Source/UnitType.cpp:2537–2543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2535 }
2536 }
2537 bool UnitType::canBuildAddon() const
2538 {
2539 return this->getID() == UnitTypes::Terran_Command_Center ||
2540 this->getID() == UnitTypes::Terran_Factory ||
2541 this->getID() == UnitTypes::Terran_Starport ||
2542 this->getID() == UnitTypes::Terran_Science_Facility;
2543 }
2544 const UnitType::set& UnitTypes::allUnitTypes()
2545 {
2546 return unitInternal::unitTypeSet;

Callers 2

AssignBuildableLocationsFunction · 0.45
Filters.cppFile · 0.45

Calls 1

getIDMethod · 0.45

Tested by

no test coverage detected