Prefix all getters with "get"
This commit is contained in:
@@ -46,18 +46,18 @@ void CommandManager::drain()
|
||||
{
|
||||
// Restart is a file boundary: a fresh file with the new seed.
|
||||
m_recorder->startNewRun(m_simulation.getSeed(),
|
||||
m_simulation.rngFingerprint());
|
||||
m_simulation.getRngFingerprint());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Commands drain before the tick batch, so currentTick is the count of
|
||||
// completed ticks the command is pinned to.
|
||||
const Tick tick = m_simulation.currentTick();
|
||||
const Tick tick = m_simulation.getCurrentTick();
|
||||
m_simulation.apply(*command);
|
||||
if (m_recorder)
|
||||
{
|
||||
m_recorder->recordCommand(tick, *command, m_simulation.rngFingerprint());
|
||||
m_recorder->recordCommand(tick, *command, m_simulation.getRngFingerprint());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -74,7 +74,7 @@ void CommandManager::setRecorder(std::unique_ptr<ReplayRecorder> recorder)
|
||||
m_recorder = std::move(recorder);
|
||||
if (m_recorder)
|
||||
{
|
||||
m_recorder->startNewRun(m_simulation.getSeed(), m_simulation.rngFingerprint());
|
||||
m_recorder->startNewRun(m_simulation.getSeed(), m_simulation.getRngFingerprint());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,8 +85,8 @@ void CommandManager::setReplayMode(bool replayMode)
|
||||
|
||||
void CommandManager::recordTickCheckpoint()
|
||||
{
|
||||
if (m_recorder && (m_simulation.currentTick() % kChecksumIntervalTicks == 0))
|
||||
if (m_recorder && (m_simulation.getCurrentTick() % kChecksumIntervalTicks == 0))
|
||||
{
|
||||
m_recorder->recordChecksum(m_simulation.currentTick(), m_simulation.rngFingerprint());
|
||||
m_recorder->recordChecksum(m_simulation.getCurrentTick(), m_simulation.getRngFingerprint());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user