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

Method resPlop

MicropolisCore/src/MicropolisEngine/src/zone.cpp:710–716  ·  view source on GitHub ↗

* Put down a residential zone. * @param pos Center tile of the residential zone. * @param den Population density (0..3) * @param value Land value - pollution (0..3), higher is better. */

Source from the content-addressed store, hash-verified

708 * @param value Land value - pollution (0..3), higher is better.
709 */
710void Micropolis::resPlop(const Position &pos, int den, int value)
711{
712 short base;
713
714 base = ((value * 4 + den) * 9) + RZB - 4;
715 zonePlop(pos, base);
716}
717
718
719/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected