OpenTTD
|
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 "water.h"
#include "core/random_func.hpp"
#include "newgrf_generic.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.
Functions | |
static CommandCost | ClearTile_Clear (TileIndex tile, DoCommandFlag flags) |
void | DrawClearLandTile (const TileInfo *ti, byte 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) |
static Foundation | GetFoundation_Clear (TileIndex tile, Slope tileh) |
static void | UpdateFences (TileIndex tile) |
static void | TileLoopClearAlps (TileIndex tile) |
Convert to or from snowy tiles. | |
static bool | NeighbourIsDesert (TileIndex tile) |
Tests if at least one surrounding tile is desert. | |
static void | TileLoopClearDesert (TileIndex tile) |
static void | TileLoop_Clear (TileIndex tile) |
void | GenerateClearTile () |
static TrackStatus | GetTileTrackStatus_Clear (TileIndex tile, TransportType mode, uint sub_mode, DiagDirection side) |
static void | GetTileDesc_Clear (TileIndex tile, TileDesc *td) |
static void | ChangeTileOwner_Clear (TileIndex tile, Owner old_owner, Owner new_owner) |
static CommandCost | TerraformTile_Clear (TileIndex tile, DoCommandFlag flags, int z_new, Slope tileh_new) |
Variables | |
static const StringID | _clear_land_str [] |
const TileTypeProcs | _tile_type_clear_procs |
Commands related to clear tiles.
Definition in file clear_cmd.cpp.
|
inlinestatic |
Tests if at least one surrounding tile is desert.
tile | tile to check |
Definition at line 215 of file clear_cmd.cpp.
References GetTropicZone(), TileDiffXY(), and TROPICZONE_DESERT.
|
static |
Convert to or from snowy tiles.
Definition at line 179 of file clear_cmd.cpp.
References AddClearDensity(), ClearSnow(), GetClearDensity(), GetSnowLine(), GetTileZ(), IsSnowTile(), MakeSnow(), MarkTileDirtyByTile(), and min().
|
static |
Definition at line 358 of file clear_cmd.cpp.
const TileTypeProcs _tile_type_clear_procs |