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

Method getCurrentFrame

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

////////////////////////////////// IMAGE functions

Source from the content-addressed store, hash-verified

8{
9 /////////////////////////////////////// IMAGE functions
10 grpFrame *CImage::getCurrentFrame() const
11 {
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;

Callers 2

updateGraphicDataMethod · 0.95
drawImageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected