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

Method getUnitsOnTile

bwapi/BWAPILIB/Source/Game.cpp:689–692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

687 return this->hasCreep(position.x, position.y);
688 }
689 Unitset Game::getUnitsOnTile(int tileX, int tileY, const UnitFilter &pred) const
690 {
691 return this->getUnitsOnTile(TilePosition(tileX,tileY), pred);
692 }
693 Unitset Game::getUnitsOnTile(BWAPI::TilePosition tile, const UnitFilter &pred) const
694 {
695 if ( !tile ) // if tileposition not valid

Callers 3

buildableMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80

Calls 1

getUnitsInRectangleMethod · 0.95

Tested by 2

updateMethod · 0.64
updateMethod · 0.64