OpenTTD Source 20241224-master-gf74b0cf984
|
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.
Variables | |
static const StringID | _clear_land_str [] |
const TileTypeProcs | _tile_type_clear_procs |
Commands related to clear tiles.
Definition in file clear_cmd.cpp.
Definition at line 349 of file clear_cmd.cpp.
|
static |
Definition at line 26 of file clear_cmd.cpp.
|
static |
Definition at line 61 of file clear_cmd.cpp.
void DrawClearLandTile | ( | const TileInfo * | ti, |
uint8_t | set | ||
) |
Definition at line 47 of file clear_cmd.cpp.
void DrawHillyLandTile | ( | const TileInfo * | ti | ) |
Definition at line 52 of file clear_cmd.cpp.
|
static |
Definition at line 101 of file clear_cmd.cpp.
void GenerateClearTile | ( | ) |
Definition at line 284 of file clear_cmd.cpp.
|
static |
Definition at line 137 of file clear_cmd.cpp.
|
static |
Definition at line 130 of file clear_cmd.cpp.
Definition at line 339 of file clear_cmd.cpp.
|
static |
Definition at line 325 of file clear_cmd.cpp.
|
inlinestatic |
Tests if at least one surrounding tile is non-desert.
tile | tile to check |
Definition at line 194 of file clear_cmd.cpp.
References DIAGDIR_BEGIN, DIAGDIR_END, GetTropicZone(), GetWaterClass(), HasTileWaterClass(), IsValidTile(), TileOffsByDiagDir(), TROPICZONE_DESERT, and WATER_CLASS_SEA.
|
static |
Definition at line 354 of file clear_cmd.cpp.
|
static |
Definition at line 229 of file clear_cmd.cpp.
|
static |
Convert to or from snowy tiles.
Definition at line 160 of file clear_cmd.cpp.
References AddClearDensity(), ClearSnow(), GetClearDensity(), GetSnowLine(), GetTileZ(), IsSnowTile(), MakeSnow(), and MarkTileDirtyByTile().
|
static |
Definition at line 205 of file clear_cmd.cpp.
|
static |
Definition at line 142 of file clear_cmd.cpp.
|
static |
Definition at line 330 of file clear_cmd.cpp.
|
extern |