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

Method doPopNum

MicropolisCore/src/MicropolisEngine/src/evaluate.cpp:172–184  ·  view source on GitHub ↗

* Compute city population and city classification. * @see cityPop cityClass. */

Source from the content-addressed store, hash-verified

170 * @see cityPop cityClass.
171 */
172void Micropolis::doPopNum()
173{
174 Quad oldCityPop = cityPop;
175
176 cityPop = getPopulation();
177
178 if (oldCityPop == -1) {
179 oldCityPop = cityPop;
180 }
181
182 cityPopDelta = cityPop - oldCityPop;
183 cityClass = getCityClass(cityPop);
184}
185
186/** Compute city population. */
187Quad Micropolis::getPopulation()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected