* 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. */
| 147 | * @todo Make function return the value, or change the name of the function. |
| 148 | */ |
| 149 | void 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 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected