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

Method getLatencyTime

bwapi/BWAPI/Source/BWAPI/GameImpl.cpp:794–797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

792 return (BW::BWDATA::LatencyFrames[BW::BWDATA::GameSpeed]) * (BW::BWDATA::Latency + dwCallDelay + 1);
793 }
794 int GameImpl::getLatencyTime() const
795 {
796 return getLatencyFrames() * BW::BWDATA::GameSpeedModifiers.gameSpeedModifiers[BW::BWDATA::GameSpeed];
797 }
798 int GameImpl::getRemainingLatencyFrames() const
799 {
800 return getLatencyFrames() - (this->getFrameCount() - lastTurnFrame);

Callers 1

updateSharedMemoryMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected