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

Method initWillStuff

MicropolisCore/src/MicropolisEngine/src/initialize.cpp:76–114  ·  view source on GitHub ↗

Reset many game state variables */

Source from the content-addressed store, hash-verified

74
75/** Reset many game state variables */
76void Micropolis::initWillStuff()
77{
78 randomlySeedRandom();
79 initGraphMax();
80 destroyAllSprites();
81
82 roadEffect = MAX_ROAD_EFFECT;
83 policeEffect = MAX_POLICE_STATION_EFFECT;
84 fireEffect = MAX_FIRE_STATION_EFFECT;
85 cityScore = 500;
86 cityPop = -1;
87 cityTimeLast = -1;
88 cityYearLast = -1;
89 cityMonthLast = -1;
90 totalFundsLast = -1;
91 resLast = comLast = indLast = -999999;
92 roadFund = 0;
93 policeFund = 0;
94 fireFund = 0;
95 valveFlag = true;
96 disasterEvent = SC_NONE;
97 taxFlag = false;
98
99 populationDensityMap.clear();
100 trafficDensityMap.clear();
101 pollutionDensityMap.clear();
102 landValueMap.clear();
103 crimeRateMap.clear();
104 terrainDensityMap.clear();
105 rateOfGrowthMap.clear();
106 comRateMap.clear();
107 policeStationMap.clear();
108 policeStationEffectMap.clear();
109 fireStationMap.clear();
110 fireStationEffectMap.clear();
111
112 doNewGame();
113 doUpdateHeads();
114}
115
116
117/**

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected