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

Method getTarget

bwapi/Shared/UnitShared.cpp:278–281  ·  view source on GitHub ↗

--------------------------------------------- GET TARGET -------------------------------------------------

Source from the content-addressed store, hash-verified

276 }
277 //--------------------------------------------- GET TARGET -------------------------------------------------
278 Unit UnitImpl::getTarget() const
279 {
280 return Broodwar->getUnit(self->target);
281 }
282 //--------------------------------------------- GET TARGET POSITION ----------------------------------------
283 Position UnitImpl::getTargetPosition() const
284 {

Callers 6

startMethod · 0.45
updateMethod · 0.45
updateMethod · 0.45
startMethod · 0.45
updateMethod · 0.45
updateMethod · 0.45

Calls 1

getUnitMethod · 0.45

Tested by 6

startMethod · 0.36
updateMethod · 0.36
updateMethod · 0.36
startMethod · 0.36
updateMethod · 0.36
updateMethod · 0.36