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

Method UseTechOnClosest

bwapi/BWScriptEmulator/UnitInfo.cpp:52–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 return false; // If the tech failed
51}
52bool UnitWrap::UseTechOnClosest(BWAPI::TechType tech, int range, const BWAPI::UnitFilter &pred, int targBit)
53{
54 Unit pTarget = pUnit->getClosestUnit(pred, range);
55 return UseTech(tech, pTarget, targBit);
56}
57
58// ----------------------------------------------- GETTERS -----------------------------------------
59int UnitWrap::GetOrderTimer() const

Callers

nothing calls this directly

Calls 1

getClosestUnitMethod · 0.45

Tested by

no test coverage detected