|
OpenTTD Source 20251117-master-g7398d2e290
|
Command definitions related to landscape (slopes etc.). More...
#include "command_type.h"Go to the source code of this file.
Functions | |
| CommandCost | CmdLandscapeClear (DoCommandFlags flags, TileIndex tile) |
| Clear a piece of landscape. | |
| std::tuple< CommandCost, Money > | CmdClearArea (DoCommandFlags flags, TileIndex tile, TileIndex start_tile, bool diagonal) |
| Clear a big piece of landscape. | |
Command definitions related to landscape (slopes etc.).
Definition in file landscape_cmd.h.
| std::tuple< CommandCost, Money > CmdClearArea | ( | DoCommandFlags | 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 735 of file landscape.cpp.
References _current_company, _pause_mode, CommandCost::AddCost(), BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Any(), Auto, Bankrupt, CompanyProperties::clear_limit, CMD_ERROR, TileIterator::Create(), CreateEffectVehicleAbove(), EV_EXPLOSION_LARGE, EV_EXPLOSION_SMALL, Execute, EXPENSES_CONSTRUCTION, CommandCost::Failed(), ForceClearTile, GB(), GetAvailableMoneyForCommand(), CommandCost::GetCost(), Pool< Titem, Tindex, Tgrowth_step, Tpool_type, Tcache >::PoolItem<&_company_pool >::GetIfValid(), INVALID_TILE, BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::None(), BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Reset(), BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Set(), Map::Size(), BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Test(), TILE_SIZE, TileX(), and TileY().
| CommandCost CmdLandscapeClear | ( | DoCommandFlags | flags, |
| TileIndex | tile | ||
| ) |
Clear a piece of landscape.
| flags | of operation to conduct |
| tile | tile to clear |
Definition at line 677 of file landscape.cpp.
References _current_company, _tile_type_procs, CommandCost::AddCost(), BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Any(), Auto, Bankrupt, CompanyProperties::clear_limit, ClearNeighbourNonFloodingStates(), DirtyCompanyInfrastructureWindows(), Execute, EXPENSES_CONSTRUCTION, FindClearedObject(), ClearedObjectArea::first_tile, ForceClearTile, GB(), Pool< Titem, Tindex, Tgrowth_step, Tpool_type, Tcache >::PoolItem<&_company_pool >::Get(), Pool< Titem, Tindex, Tgrowth_step, Tpool_type, Tcache >::PoolItem<&_company_pool >::GetIfValid(), GetTileOwner(), GetTileType(), GetWaterClass(), HasTileWaterClass(), IsCanal(), IsCoastTile(), IsTileOnWater(), Pool< Titem, Tindex, Tgrowth_step, Tpool_type, Tcache >::PoolItem<&_company_pool >::IsValidID(), IsWaterTile(), NoWater, BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Test(), and WATER_CLASS_CANAL.