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

Method getUnitsInRectangle

bwapi/BWAPILIB/Source/Game.cpp:713–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

711 return this->getUnitsInRadius(center.x, center.y, radius, pred);
712 }
713 Unitset Game::getUnitsInRectangle(BWAPI::Position topLeft, BWAPI::Position bottomRight, const UnitFilter &pred) const
714 {
715 return this->getUnitsInRectangle(topLeft.x, topLeft.y, bottomRight.x, bottomRight.y, pred);
716 }
717 Unit Game::getClosestUnit(Position center, const UnitFilter &pred, int radius) const
718 {
719 return this->getClosestUnitInRectangle(center,

Callers 11

getUnitsOnTileMethod · 0.95
getUnitsInRadiusMethod · 0.95
canBuildHereFunction · 0.45
Military.cppFile · 0.45
executeMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45
getUnitsInRadiusMethod · 0.45
getUnitsInWeaponRangeMethod · 0.45
getUnitsMethod · 0.45
canBuildHereWithSpaceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected