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

Method getResZonePop

MicropolisCore/src/MicropolisEngine/src/zone.cpp:697–702  ·  view source on GitHub ↗

* 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 ) */

Source from the content-addressed store, hash-verified

695 * (16, 24, 32, 40, 16, ..., 40 )
696 */
697short 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected