OpenTTD Source
20240917-master-g9ab0a47812
|
Go to the documentation of this file.
33 return IsSteepSlope(tileh) ? (tileh & entrance_corners) == entrance_corners : (tileh & entrance_corners) != 0;
bool CanBuildDepotByTileh(DiagDirection direction, Slope tileh)
Find out if the slope of the tile is suitable to build a depot of given direction.
static constexpr bool IsSteepSlope(Slope s)
Checks if a slope is steep.
DiagDirection
Enumeration for diagonal directions.
void DeleteDepotHighlightOfVehicle(const Vehicle *v)
Removes the highlight of a vehicle in a depot window.
Slope
Enumeration for the slope-type.
void InitDepotWindowBlockSizes()
Set the size of the blocks in the window so we can be sure that they are big enough for the vehicle s...
Slope InclinedSlope(DiagDirection dir)
Returns the slope that is inclined in a specific direction.
VehicleType
Available vehicle types.
void ShowDepotWindow(TileIndex tile, VehicleType type)
Opens a depot window.