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

Method getRight

bwapi/BWAPILIB/Source/Unit.cpp:218–221  ·  view source on GitHub ↗

--------------------------------------------- GET RIGHT --------------------------------------------------

Source from the content-addressed store, hash-verified

216 }
217 //--------------------------------------------- GET RIGHT --------------------------------------------------
218 int UnitInterface::getRight() const
219 {
220 return this->getPosition().x + this->getType().dimensionRight();
221 }
222 //--------------------------------------------- GET BOTTOM -------------------------------------------------
223 int UnitInterface::getBottom() const
224 {

Callers 6

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

Calls 3

dimensionRightMethod · 0.80
getPositionMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected