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

Method updateBeforeBattle

game/state/gamestate.cpp:1512–1518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1510}
1511
1512void GameState::updateBeforeBattle()
1513{
1514 // Save time to roll back to
1515 gameTimeBeforeBattle = GameTime(gameTime.getTicks());
1516 // Some useless event just to know if something was reported
1517 eventFromBattle = GameEventType::None;
1518}
1519
1520void GameState::updateAfterBattle()
1521{

Callers 1

enterBattleMethod · 0.80

Calls 2

GameTimeClass · 0.85
getTicksMethod · 0.80

Tested by

no test coverage detected