OpenTTD Source 20250205-master-gfd85ab1e2c
water_cmd.h File Reference

Command definitions related to water tiles. More...

#include "command_type.h"
#include "water_map.h"

Go to the source code of this file.

Functions

CommandCost CmdBuildShipDepot (DoCommandFlag flags, TileIndex tile, Axis axis)
 Build a ship depot.
 
CommandCost CmdBuildCanal (DoCommandFlag flags, TileIndex tile, TileIndex start_tile, WaterClass wc, bool diagonal)
 Build a piece of canal.
 
CommandCost CmdBuildLock (DoCommandFlag flags, TileIndex tile)
 Builds a lock.
 

Detailed Description

Command definitions related to water tiles.

Definition in file water_cmd.h.

Function Documentation

◆ CmdBuildCanal()

◆ CmdBuildLock()

CommandCost CmdBuildLock ( DoCommandFlag  flags,
TileIndex  tile 
)

Builds a lock.

Parameters
flagstype of operation
tiletile where to place the lock
Returns
the cost of this operation or an error

Definition at line 435 of file water_cmd.cpp.

References DoBuildLock(), GetInclinedSlopeDirection(), GetTileSlope(), and INVALID_DIAGDIR.

◆ CmdBuildShipDepot()