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

Method getUnits

bwapi/BWAPILIB/Source/Region.cpp:14–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 }
13
14 Unitset RegionInterface::getUnits(const UnitFilter &pred) const
15 {
16 return Broodwar->getUnitsInRectangle(this->getBoundsLeft(),
17 this->getBoundsTop(),
18 this->getBoundsRight(),
19 this->getBoundsBottom(),
20 [&](Unit u){ return u->getRegion() == this && (!pred.isValid() || pred(u)); });
21 }
22}

Callers 15

GetSuitableCasterFunction · 0.45
executeMethod · 0.45
executeMethod · 0.45
onFrameMethod · 0.45
DoUnitBehaviourMethod · 0.45
executeMethod · 0.45
ReserveAllStructuresFunction · 0.45
ReserveDefaultFunction · 0.45
mainFunction · 0.45
onFrameMethod · 0.45
startMethod · 0.45

Calls 7

getBoundsLeftMethod · 0.80
getBoundsTopMethod · 0.80
getBoundsRightMethod · 0.80
getBoundsBottomMethod · 0.80
getUnitsInRectangleMethod · 0.45
getRegionMethod · 0.45
isValidMethod · 0.45

Tested by 15

onFrameMethod · 0.36
startMethod · 0.36
startMethod · 0.36
startMethod · 0.36
onStartMethod · 0.36
onFrameMethod · 0.36
startMethod · 0.36
startMethod · 0.36
startMethod · 0.36
startMethod · 0.36
startMethod · 0.36
startMethod · 0.36