Initialize for a simulation */
| 133 | |
| 134 | /** Initialize for a simulation */ |
| 135 | void 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 | /** |
nothing calls this directly
no test coverage detected