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

Method getIndZonePop

MicropolisCore/src/MicropolisEngine/src/zone.cpp:987–995  ·  view source on GitHub ↗

* Get the population value for the given industrial tile. * @param tile Center tile value of the industrial zone. * @return Population value. */

Source from the content-addressed store, hash-verified

985 * @return Population value.
986 */
987short Micropolis::getIndZonePop(MapTile tile)
988{
989 if (tile == INDCLR) {
990 return 0;
991 }
992
993 short CzDen = (((tile - IZB) / 9) % 4) + 1;
994 return CzDen;
995}
996
997/**
998 * Place an industrial zone around center tile \a pos.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected