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