* Return population of a residential zone center tile * (RZB, RZB+9, ..., HOSPITAL - 9). * * @param mapTile Center tile of a residential zone. * @return Population of the residential zone. * (16, 24, 32, 40, 16, ..., 40 ) */
| 695 | * (16, 24, 32, 40, 16, ..., 40 ) |
| 696 | */ |
| 697 | short Micropolis::getResZonePop(MapTile mapTile) |
| 698 | { |
| 699 | short CzDen = ((mapTile - RZB) / 9) % 4; |
| 700 | |
| 701 | return CzDen * 8 + 16; |
| 702 | } |
| 703 | |
| 704 | /** |
| 705 | * Put down a residential zone. |
nothing calls this directly
no outgoing calls
no test coverage detected