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

Method getPosition

bwapi/BWAPI/Source/BW/CImage.cpp:14–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 return &this->GRPFile->frames[this->frameIndex];
13 }
14 BW::Position CImage::getPosition() const
15 {
16 return Position(this->horizontalOffset, this->verticalOffset) + this->spriteOwner->position;
17 }
18 void CImage::updateGraphicData()
19 {
20 grpHead *pGrpHead = this->GRPFile;

Callers 6

updateGraphicDataMethod · 0.95
SendClientEventMethod · 0.45
addMethod · 0.45
executeCommandMethod · 0.45
addEventMethod · 0.45
moveToSelectedUnitsMethod · 0.45

Calls 1

PositionClass · 0.50

Tested by

no test coverage detected