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

Method doSimInit

MicropolisCore/src/MicropolisEngine/src/simulate.cpp:276–304  ·  view source on GitHub ↗

* Initialize simulation. * @todo Create constants for initSimLoad. */

Source from the content-addressed store, hash-verified

274 * @todo Create constants for initSimLoad.
275 */
276void Micropolis::doSimInit()
277{
278 phaseCycle = 0;
279 simCycle = 0;
280
281 if (initSimLoad == 2) {
282 /* if new city */
283 initSimMemory();
284 }
285
286 if (initSimLoad == 1) {
287 /* if city just loaded */
288 simLoadInit();
289 }
290
291 setValves();
292 clearCensus();
293 mapScan(0, WORLD_W);
294 doPowerScan();
295 newPower = true; /* post rel */
296 pollutionTerrainLandValueScan();
297 crimeScan();
298 populationDensityScan();
299 fireAnalysis();
300 newMap = 1;
301 censusChanged = true;
302 totalPop = 1;
303 doInitialEval = true;
304}
305
306
307/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected