|
OpenTTD Source
13.2.1
|
#include "command_type.h"Go to the source code of this file.
Functions | |
| CommandCost | CmdLandscapeClear (DoCommandFlag flags, TileIndex tile) |
| Clear a piece of landscape. More... | |
| std::tuple< CommandCost, Money > | CmdClearArea (DoCommandFlag flags, TileIndex tile, TileIndex start_tile, bool diagonal) |
| Clear a big piece of landscape. More... | |
Command definitions related to landscape (slopes etc.).
Definition in file landscape_cmd.h.
| std::tuple<CommandCost, Money> CmdClearArea | ( | DoCommandFlag | flags, |
| TileIndex | tile, | ||
| TileIndex | start_tile, | ||
| bool | diagonal | ||
| ) |
Clear a big piece of landscape.
| flags | of operation to conduct |
| tile | end tile of area dragging |
| start_tile | start tile of area dragging |
| diagonal | Whether to use the Orthogonal (false) or Diagonal (true) iterator. |
Definition at line 749 of file landscape.cpp.
References _current_company, CMD_ERROR, DC_AUTO, DC_BANKRUPT, EXPENSES_CONSTRUCTION, GetAvailableMoneyForCommand(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_company_pool >::GetIfValid(), and MapSize().
| CommandCost CmdLandscapeClear | ( | DoCommandFlag | flags, |
| TileIndex | tile | ||
| ) |
Clear a piece of landscape.
| flags | of operation to conduct |
| tile | tile to clear |
Definition at line 701 of file landscape.cpp.
References CommandCost::AddCost(), DC_AUTO, DC_FORCE_CLEAR_TILE, EXPENSES_CONSTRUCTION, GetWaterClass(), HasTileWaterClass(), IsCoastTile(), IsTileOnWater(), IsWaterTile(), return_cmd_error, and WATER_CLASS_CANAL.