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

Method setLocalSpeed

bwapi/BWAPI/Source/BWAPI/GameImpl.cpp:632–639  ·  view source on GitHub ↗

--------------------------------------------------- GAME SPEED -------------------------------------------

Source from the content-addressed store, hash-verified

630 }
631 //--------------------------------------------------- GAME SPEED -------------------------------------------
632 void GameImpl::setLocalSpeed(int speed)
633 {
634 // Sets the frame rate of the client
635 if (!this->tournamentCheck(Tournament::SetLocalSpeed, &speed) ||
636 this->speedOverride != std::numeric_limits<decltype(this->speedOverride)>::min()) return;
637
638 setLocalSpeedDirect(speed);
639 }
640 void GameImpl::setLocalSpeedDirect(int speed)
641 {
642 if (speed < 0)

Callers 8

processCommandsMethod · 0.45
onStartMethod · 0.45
onFrameMethod · 0.45
onStartMethod · 0.45
onStartMethod · 0.45
onStartMethod · 0.45
onStartMethod · 0.45
onStartMethod · 0.45

Calls 1

tournamentCheckMethod · 0.95

Tested by 7

onStartMethod · 0.36
onFrameMethod · 0.36
onStartMethod · 0.36
onStartMethod · 0.36
onStartMethod · 0.36
onStartMethod · 0.36
onStartMethod · 0.36