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

Method simInit

MicropolisCore/src/MicropolisEngine/src/main.cpp:135–167  ·  view source on GitHub ↗

Initialize for a simulation */

Source from the content-addressed store, hash-verified

133
134/** Initialize for a simulation */
135void Micropolis::simInit()
136{
137 setEnableSound(true); // Enable sound
138 mustUpdateOptions = true; // Update options displayed at user
139 scenario = SC_NONE;
140 startingYear = 1900;
141 simPasses = 1;
142 simPass = 0;
143 setAutoGoto(true); // Enable auto-goto
144 setCityTax(7);
145 cityTime = 50;
146 setEnableDisasters(true); // Enable disasters
147 setAutoBulldoze(true); // Enable auto bulldoze
148 setAutoBudget(true); // Enable auto-budget
149 blinkFlag = 1;
150 simSpeed = 3;
151 changeEval();
152 simPaused = false; // Simulation is running
153 simLoops = 0;
154 initSimLoad = 2;
155
156 initMapArrays();
157 initGraphs();
158 initFundingLevel();
159 resetMapState();
160 resetEditorState();
161 clearMap();
162 initWillStuff();
163 setFunds(5000);
164 setGameLevelFunds(LEVEL_EASY);
165 setSpeed(0);
166 setPasses(1);
167}
168
169
170/**

Callers

nothing calls this directly

Calls 2

initMapArraysFunction · 0.85
initGraphsFunction · 0.85

Tested by

no test coverage detected