MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / updateAfterTurbo

Method updateAfterTurbo

game/state/gamestate.cpp:1496–1510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1494}
1495
1496void GameState::updateAfterTurbo()
1497{
1498 for (auto &v : this->vehicles)
1499 {
1500 if (v.second->city != current_city)
1501 {
1502 continue;
1503 }
1504 if (v.second->type->aggressiveness > 0)
1505 {
1506 continue;
1507 }
1508 v.second->update(*this, randBoundsExclusive(rng, (unsigned)0, 20 * TICKS_PER_SECOND));
1509 }
1510}
1511
1512void GameState::updateBeforeBattle()
1513{

Callers 1

updateTurboMethod · 0.95

Calls 2

randBoundsExclusiveFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected