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

Method getScreenPosition

bwapi/BWAPI/Source/BWAPI/GameImpl.cpp:186–191  ·  view source on GitHub ↗

------------------------------------------- GET SCREEN POSITION ------------------------------------------

Source from the content-addressed store, hash-verified

184 }
185 //------------------------------------------- GET SCREEN POSITION ------------------------------------------
186 BWAPI::Position GameImpl::getScreenPosition() const
187 {
188 if ( !this->isFlagEnabled(BWAPI::Flag::UserInput) )
189 return BWAPI::Positions::Unknown;
190 return BWAPI::Position(BW::BWDATA::ScreenX, BW::BWDATA::ScreenY);
191 }
192 //------------------------------------------- SET SCREEN POSITION ------------------------------------------
193 void GameImpl::setScreenPosition(int x, int y)
194 {

Callers 4

onSendTextMethod · 0.45
updateSharedMemoryMethod · 0.45
onFrameMethod · 0.45
onStartMethod · 0.45

Calls 2

isFlagEnabledMethod · 0.95
PositionClass · 0.50

Tested by 2

onFrameMethod · 0.36
onStartMethod · 0.36