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

Method doAirport

MicropolisCore/src/MicropolisEngine/src/simulate.cpp:1631–1641  ·  view source on GitHub ↗

* Generate a airplane or helicopter every now and then. * @param pos Position of the airport to start from. */

Source from the content-addressed store, hash-verified

1629 * @param pos Position of the airport to start from.
1630 */
1631void Micropolis::doAirport(const Position &pos)
1632{
1633 if (getRandom(5) == 0) {
1634 generatePlane(pos);
1635 return;
1636 }
1637
1638 if (getRandom(12) == 0) {
1639 generateCopter(pos);
1640 }
1641}
1642
1643
1644/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected