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

Method init

MicropolisCore/src/MicropolisEngine/src/micropolis.cpp:108–757  ·  view source on GitHub ↗

Initialize simulator variables to a sane default. */

Source from the content-addressed store, hash-verified

106
107/** Initialize simulator variables to a sane default. */
108void Micropolis::init()
109{
110
111
112 ////////////////////////////////////////////////////////////////////////
113 // allocate.cpp
114
115
116 // short roadTotal;
117 roadTotal = 0;
118
119 // short railTotal;
120 railTotal = 0;
121
122 // short firePop;
123 firePop = 0;
124
125 // short resPop;
126 resPop = 0;
127
128 // short comPop;
129 comPop = 0;
130
131 // short indPop;
132 indPop = 0;
133
134 // short totalPop;
135 totalPop = 0;
136
137 // short totalPopLast;
138 totalPopLast = 0;
139
140 // short resZonePop;
141 resZonePop = 0;
142
143 // short comZonePop;
144 comZonePop = 0;
145
146 // short indZonePop;
147 indZonePop = 0;
148
149 // short totalZonePop;
150 totalZonePop = 0;
151
152 // short hospitalPop;
153 hospitalPop = 0;
154
155 // short churchPop;
156 churchPop = 0;
157
158 // short faith;
159 faith = 0;
160
161 // short stadiumPop;
162 stadiumPop = 0;
163
164 // short policeStationPop;
165 policeStationPop = 0;

Callers 4

all.jsFile · 0.45
all_pretty.jsFile · 0.45
micropolisFacebookInitFunction · 0.45

Calls 2

PositionClass · 0.70
clearMethod · 0.45

Tested by

no test coverage detected