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

Method getAssessedValue

MicropolisCore/src/MicropolisEngine/src/evaluate.cpp:149–165  ·  view source on GitHub ↗

* Assess value of the city. * @post #cityAssessedValue contains the total city value. * @todo Make function return the value, or change the name of the function. */

Source from the content-addressed store, hash-verified

147 * @todo Make function return the value, or change the name of the function.
148 */
149void Micropolis::getAssessedValue()
150{
151 Quad z;
152
153 z = roadTotal * 5;
154 z += railTotal * 10;
155 z += policeStationPop * 1000;
156 z += fireStationPop * 1000;
157 z += hospitalPop * 400;
158 z += stadiumPop * 3000;
159 z += seaportPop * 5000;
160 z += airportPop * 10000;
161 z += coalPowerPop * 3000;
162 z += nuclearPowerPop * 6000;
163
164 cityAssessedValue = z * 1000;
165}
166
167
168/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected