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

Method getComZonePop

MicropolisCore/src/MicropolisEngine/src/zone.cpp:852–860  ·  view source on GitHub ↗

* Get commercial zone population number. * @param tile Tile of the commercial zone. * @return Population number of the zone. */

Source from the content-addressed store, hash-verified

850 * @return Population number of the zone.
851 */
852short Micropolis::getComZonePop(MapTile tile)
853{
854 if (tile == COMCLR) {
855 return 0;
856 }
857
858 short CzDen = ((tile - CZB) / 9) % 5 + 1;
859 return CzDen;
860}
861
862
863/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected