Commands related to clear tiles.
More...
#include "stdafx.h"
#include "clear_map.h"
#include "command_func.h"
#include "landscape.h"
#include "genworld.h"
#include "viewport_func.h"
#include "core/random_func.hpp"
#include "newgrf_generic.h"
#include "landscape_cmd.h"
#include "table/strings.h"
#include "table/sprites.h"
#include "table/clear_land.h"
#include "safeguards.h"
Go to the source code of this file.
|
| static CommandCost | ClearTile_Clear (TileIndex tile, DoCommandFlags flags) |
| void | DrawClearLandTile (const TileInfo *ti, uint8_t set) |
| void | DrawHillyLandTile (const TileInfo *ti) |
| static void | DrawClearLandFence (const TileInfo *ti) |
| static void | DrawTile_Clear (TileInfo *ti) |
| static int | GetSlopePixelZ_Clear (TileIndex tile, uint x, uint y, bool) |
| static Foundation | GetFoundation_Clear (TileIndex, Slope) |
| static void | UpdateFences (TileIndex tile) |
| static void | TileLoopClearAlps (TileIndex tile) |
| | Convert to or from snowy tiles.
|
| static bool | NeighbourIsNormal (TileIndex tile) |
| | Tests if at least one surrounding tile is non-desert.
|
| static void | TileLoopClearDesert (TileIndex tile) |
| static void | TileLoop_Clear (TileIndex tile) |
| void | GenerateClearTile () |
| static TrackStatus | GetTileTrackStatus_Clear (TileIndex, TransportType, uint, DiagDirection) |
| static void | GetTileDesc_Clear (TileIndex tile, TileDesc &td) |
| static void | ChangeTileOwner_Clear (TileIndex, Owner, Owner) |
| static CommandCost | TerraformTile_Clear (TileIndex tile, DoCommandFlags flags, int, Slope) |
| static CommandCost | CheckBuildAbove_Clear (TileIndex, DoCommandFlags, Axis, int) |
Commands related to clear tiles.
Definition in file clear_cmd.cpp.
◆ ChangeTileOwner_Clear()
| void ChangeTileOwner_Clear |
( |
TileIndex | , |
|
|
Owner | , |
|
|
Owner | ) |
|
static |
◆ CheckBuildAbove_Clear()
◆ ClearTile_Clear()
◆ DrawClearLandFence()
| void DrawClearLandFence |
( |
const TileInfo * | ti | ) |
|
|
static |
◆ DrawClearLandTile()
| void DrawClearLandTile |
( |
const TileInfo * | ti, |
|
|
uint8_t | set ) |
◆ DrawHillyLandTile()
| void DrawHillyLandTile |
( |
const TileInfo * | ti | ) |
|
◆ DrawTile_Clear()
◆ GenerateClearTile()
| void GenerateClearTile |
( |
| ) |
|
◆ GetFoundation_Clear()
◆ GetSlopePixelZ_Clear()
| int GetSlopePixelZ_Clear |
( |
TileIndex | tile, |
|
|
uint | x, |
|
|
uint | y, |
|
|
bool | ) |
|
static |
◆ GetTileDesc_Clear()
◆ GetTileTrackStatus_Clear()
◆ NeighbourIsNormal()
◆ TerraformTile_Clear()
◆ TileLoop_Clear()
◆ TileLoopClearAlps()
◆ TileLoopClearDesert()
◆ UpdateFences()
◆ _tile_type_clear_procs
Initial value: = {
DrawTile_Clear,
GetSlopePixelZ_Clear,
ClearTile_Clear,
nullptr,
GetTileDesc_Clear,
GetTileTrackStatus_Clear,
nullptr,
nullptr,
TileLoop_Clear,
ChangeTileOwner_Clear,
nullptr,
nullptr,
GetFoundation_Clear,
TerraformTile_Clear,
CheckBuildAbove_Clear,
}