33 return IsSteepSlope(tileh) ? (tileh & entrance_corners) == entrance_corners : (tileh & entrance_corners) != 0;
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...
bool CanBuildDepotByTileh(DiagDirection direction, Slope tileh)
Find out if the slope of the tile is suitable to build a depot of given direction.
void DeleteDepotHighlightOfVehicle(const Vehicle *v)
Removes the highlight of a vehicle in a depot window.
void ShowDepotWindow(TileIndex tile, VehicleType type)
Opens a depot window.
DiagDirection
Enumeration for diagonal directions.
Functions related to slopes.
static constexpr bool IsSteepSlope(Slope s)
Checks if a slope is steep.
Slope InclinedSlope(DiagDirection dir)
Returns the slope that is inclined in a specific direction.
Slope
Enumeration for the slope-type.
Types related to vehicles.
VehicleType
Available vehicle types.