* Compute city population and city classification. * @see cityPop cityClass. */
| 170 | * @see cityPop cityClass. |
| 171 | */ |
| 172 | void 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. */ |
| 187 | Quad Micropolis::getPopulation() |
nothing calls this directly
no outgoing calls
no test coverage detected