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

Method getLeft

bwapi/BWAPILIB/Source/Unit.cpp:208–211  ·  view source on GitHub ↗

--------------------------------------------- GET LEFT ---------------------------------------------------

Source from the content-addressed store, hash-verified

206 }
207 //--------------------------------------------- GET LEFT ---------------------------------------------------
208 int UnitInterface::getLeft() const
209 {
210 return this->getPosition().x - this->getType().dimensionLeft();
211 }
212 //--------------------------------------------- GET TOP ----------------------------------------------------
213 int UnitInterface::getTop() const
214 {

Callers 7

getUnitsInRadiusMethod · 0.95
getClosestUnitMethod · 0.95
getUnitsInWeaponRangeMethod · 0.95
getDistanceMethod · 0.95
iterateUnitFinderFunction · 0.80
updateUnitsMethod · 0.80
Filters.cppFile · 0.80

Calls 3

dimensionLeftMethod · 0.80
getPositionMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected