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

Method isBeingConstructed

bwapi/BWAPILIB/Source/Unit.cpp:228–237  ·  view source on GitHub ↗

--------------------------------------------- IS BEING CONSTRUCTED ---------------------------------------

Source from the content-addressed store, hash-verified

226 }
227 //--------------------------------------------- IS BEING CONSTRUCTED ---------------------------------------
228 bool UnitInterface::isBeingConstructed() const
229 {
230 if ( this->isMorphing() )
231 return true;
232 if ( this->isCompleted() )
233 return false;
234 if ( this->getType().getRace() != Races::Terran )
235 return true;
236 return this->getBuildUnit() != nullptr;
237 }
238 // ------------------------------------------ STATUS ---------------------------------------------
239 bool UnitInterface::isDefenseMatrixed() const
240 {

Callers 7

Filters.cppFile · 0.80
onStartMethod · 0.80
updateMethod · 0.80
startMethod · 0.80
updateMethod · 0.80
stopMethod · 0.80
updateMethod · 0.80

Calls 5

isMorphingMethod · 0.80
isCompletedMethod · 0.80
getBuildUnitMethod · 0.80
getRaceMethod · 0.45
getTypeMethod · 0.45

Tested by 6

onStartMethod · 0.64
updateMethod · 0.64
startMethod · 0.64
updateMethod · 0.64
stopMethod · 0.64
updateMethod · 0.64