* Initialize simulation. * @todo Create constants for initSimLoad. */
| 274 | * @todo Create constants for initSimLoad. |
| 275 | */ |
| 276 | void 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 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected