GameSettings _settings_game
Game settings of a running game or the scenario editor.
static int GetSlopeMaxZ(Slope s)
Returns the height of the highest corner of a slope relative to TileZ (= minimal height) ...
bool autoslope
allow terraforming under things
The tile has no ownership.
DiagDirection
Enumeration for diagonal directions.
static bool AutoslopeEnabled()
Tests if autoslope is enabled for _current_company.
Maximum number of companies.
Functions related to companies.
static bool CanBuildDepotByTileh(DiagDirection direction, Slope tileh)
Find out if the slope of the tile is suitable to build a depot of given direction.
int GetTileMaxZ(TileIndex t)
Get top height of the tile inside the map.
CompanyByte _current_company
Company currently doing an action.
uint32 TileIndex
The index/ID of a Tile.
Functions related to depots.
Slope
Enumeration for the slope-type.
ConstructionSettings construction
construction of things in-game
static bool AutoslopeCheckForEntranceEdge(TileIndex tile, int z_new, Slope tileh_new, DiagDirection entrance)
Autoslope check for tiles with an entrance on an edge.
Map writing/reading functions for tiles.