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

Method doComOut

MicropolisCore/src/MicropolisEngine/src/zone.cpp:832–844  ·  view source on GitHub ↗

* Handle emigration of commercial zone. * @param pos Position of the commercial zone. * @param pop Population ? * @param value Land value corrected for pollution. */

Source from the content-addressed store, hash-verified

830 * @param value Land value corrected for pollution.
831 */
832void Micropolis::doComOut(const Position &pos, int pop, int value)
833{
834 if (pop > 1) {
835 comPlop(pos, pop - 2, value);
836 incRateOfGrowth(pos, -8);
837 return;
838 }
839
840 if (pop == 1) {
841 zonePlop(pos, COMBASE);
842 incRateOfGrowth(pos, -8);
843 }
844}
845
846
847/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected