* Construct rivers. * @param terrainPos Coordinate to start making a river. */
| 477 | * @param terrainPos Coordinate to start making a river. |
| 478 | */ |
| 479 | void Micropolis::doRivers(const Position &terrainPos) |
| 480 | { |
| 481 | Direction2 riverDir; // Global direction of the river |
| 482 | Direction2 terrainDir; // Local direction of the river |
| 483 | |
| 484 | riverDir = (Direction2)(DIR2_NORTH + (getRandom(3) * 2)); |
| 485 | doBRiver(terrainPos, riverDir, riverDir); |
| 486 | |
| 487 | riverDir = rotate180(riverDir); |
| 488 | terrainDir = doBRiver(terrainPos, riverDir, riverDir); |
| 489 | |
| 490 | riverDir = (Direction2)(DIR2_NORTH + (getRandom(3) * 2)); |
| 491 | doSRiver(terrainPos, riverDir, terrainDir); |
| 492 | } |
| 493 | |
| 494 | |
| 495 | /** |
nothing calls this directly
no test coverage detected