* Generate a airplane or helicopter every now and then. * @param pos Position of the airport to start from. */
| 1629 | * @param pos Position of the airport to start from. |
| 1630 | */ |
| 1631 | void 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 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected