uint32 TileIndex
The index/ID of a Tile.
int GetTileMaxZ(TileIndex t)
Get top height of the tile inside the map.
static bool AutoslopeCheckForEntranceEdge(TileIndex tile, int z_new, Slope tileh_new, DiagDirection entrance)
Autoslope check for tiles with an entrance on an edge.
static bool CanBuildDepotByTileh(DiagDirection direction, Slope tileh)
Find out if the slope of the tile is suitable to build a depot of given direction.
static 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.
static bool AutoslopeEnabled()
Tests if autoslope is enabled for _current_company.
Slope
Enumeration for the slope-type.
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