OpenTTD Source: src/pathfinder/yapf/yapf_river_builder.cpp File Reference

OpenTTD Source 15.0-RC2

Data Structures | Typedefs | Functions
yapf_river_builder.cpp File Reference

Pathfinder for river building. More...

`#include "../../stdafx.h"`
`#include "../../water.h"`
`#include "../../genworld.h"`
`#include "yapf.hpp"`
`#include "../../safeguards.h"`

Go to the source code of this file.

## Data Structures
struct | YapfRiverBuilderNode
struct | RiverBuilderFollower
struct | DummyVehicle
struct | RiverBuilderTypes
class | YapfRiverBuilder

## Typedefs
using | RiverBuilderNodeList = NodeList< YapfRiverBuilderNode, 8, 10 >

## Functions
void | YapfBuildRiver (TileIndex start_tile, TileIndex end_tile, TileIndex spring_tile, bool main_river)
| Builds a river from the start tile to the end tile.

## Detailed Description

Pathfinder for river building.

Definition in file yapf_river_builder.cpp.

## Typedef Documentation

## ◆ RiverBuilderNodeList

using RiverBuilderNodeList = NodeList<YapfRiverBuilderNode, 8, 10>

Definition at line 22 of file yapf_river_builder.cpp.

## Function Documentation

## ◆ YapfBuildRiver()

void YapfBuildRiver | ( | TileIndex | start_tile,
|  | TileIndex | end_tile,
|  | TileIndex | spring_tile,
|  | bool | main_river
| ) |  |

Builds a river from the start tile to the end tile.

Parameters

  start_tile | Start tile of the river.
  end_tile | End tile of the river.
  spring_tile | spring_tile Tile in which the spring of the river is located.
  main_river | Whether it is a main river. Main rivers can get wider than one tile.

Definition at line 144 of file yapf_river_builder.cpp.

Referenced by FlowRiver().