MCPcopy Create free account
hub / github.com/SimHacker/micropolis / pause

Method pause

MicropolisCore/src/MicropolisEngine/src/utilities.cpp:140–150  ·  view source on GitHub ↗

* Pause a simulation * @see resume */

Source from the content-addressed store, hash-verified

138 * @see resume
139 */
140void Micropolis::pause()
141{
142 if (!simPaused) {
143 simPausedSpeed = simSpeedMeta;
144 setSpeed(0);
145 simPaused = true;
146 }
147
148 // Call back even if the state did not change.
149 callback("update", "s", "paused");
150}
151
152/**
153 * Resume simulation after pausing it

Callers 8

__init__Method · 0.80
loadInitialCityMethod · 0.80
setGameModeMethod · 0.80
updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected