OpenTTD Source 20250924-master-gbec4e71d53
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  DummyFollower
 
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

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_tileStart tile of the river.
end_tileEnd tile of the river.
spring_tilespring_tile Tile in which the spring of the river is located.
main_riverWhether it is a main river. Main rivers can get wider than one tile.

Definition at line 149 of file yapf_river_builder.cpp.

Referenced by FlowRiver().