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

Method getPosition

bwapi/Shared/UnitShared.cpp:51–54  ·  view source on GitHub ↗

--------------------------------------------- GET POSITION -----------------------------------------------

Source from the content-addressed store, hash-verified

49 }
50 //--------------------------------------------- GET POSITION -----------------------------------------------
51 Position UnitImpl::getPosition() const
52 {
53 return Position(self->positionX, self->positionY);
54 }
55 //--------------------------------------------- GET ANGLE --------------------------------------------------
56 double UnitImpl::getAngle() const
57 {

Callers 15

hasPowerFunction · 0.45
canGatherFunction · 0.45
canLoadFunction · 0.45
canUnloadFunction · 0.45
canUnloadAllFunction · 0.45
canUseTechUnitFunction · 0.45
mainFunction · 0.45
drawBulletsFunction · 0.45
onFrameMethod · 0.45
updateMethod · 0.45
startMethod · 0.45
updateMethod · 0.45

Calls 1

PositionClass · 0.50

Tested by 15

onFrameMethod · 0.36
updateMethod · 0.36
startMethod · 0.36
updateMethod · 0.36
updateMethod · 0.36
onFrameMethod · 0.36
onFrameMethod · 0.36
startMethod · 0.36
updateMethod · 0.36
updateMethod · 0.36
updateMethod · 0.36
updateMethod · 0.36