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

Method doIndOut

MicropolisCore/src/MicropolisEngine/src/zone.cpp:967–979  ·  view source on GitHub ↗

* Handle industrial zone emigration. * @param pos Position of the center tile of the industrial tile. * @param pos Population value of the industrial zone. * @param value Random land value (it seems). */

Source from the content-addressed store, hash-verified

965 * @param value Random land value (it seems).
966 */
967void Micropolis::doIndOut(const Position &pos, int pop, int value)
968{
969 if (pop > 1) {
970 indPlop(pos, pop - 2, value);
971 incRateOfGrowth(pos, -8);
972 return;
973 }
974
975 if (pop == 1) {
976 zonePlop(pos, INDBASE); // empty industrial zone
977 incRateOfGrowth(pos, -8);
978 }
979}
980
981
982/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected