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

Method _unitFromIndex

bwapi/BWAPI/Source/BWAPI/GameImpl.cpp:272–275  ·  view source on GitHub ↗

--------------------------------------------- GET UNITS IN RECTANGLE -------------------------------------

Source from the content-addressed store, hash-verified

270 }
271 //--------------------------------------------- GET UNITS IN RECTANGLE -------------------------------------
272 Unit GameImpl::_unitFromIndex(int index)
273 {
274 return this->unitArray[index-1];
275 }
276 Unitset GameImpl::getUnitsInRectangle(int left, int top, int right, int bottom, const UnitFilter &pred) const
277 {
278 Unitset unitFinderResults;

Callers 1

iterateUnitFinderFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected