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

Method getTop

bwapi/BWAPILIB/Source/Unit.cpp:213–216  ·  view source on GitHub ↗

--------------------------------------------- GET TOP ----------------------------------------------------

Source from the content-addressed store, hash-verified

211 }
212 //--------------------------------------------- GET TOP ----------------------------------------------------
213 int UnitInterface::getTop() const
214 {
215 return this->getPosition().y - this->getType().dimensionUp();
216 }
217 //--------------------------------------------- GET RIGHT --------------------------------------------------
218 int UnitInterface::getRight() const
219 {

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

dimensionUpMethod · 0.80
getPositionMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected