OpenTTD Source: RailStationTileLayout Class Reference

OpenTTD Source 15.0-RC2

Data Structures | Public Member Functions | Private Attributes
RailStationTileLayout Class Reference

## Data Structures
class | Iterator

## Public Member Functions
| RailStationTileLayout (const StationSpec *spec, uint8_t platforms, uint8_t length)
Iterator | begin () const
std::default_sentinel_t | end () const

## Private Attributes
std::span< const StationGfx > | layout {}
| Predefined tile layout.
uint | platforms
| Number of platforms.
uint | length
| Length of platforms.

## Detailed Description

Definition at line 16 of file station_layout_type.h.

## Constructor & Destructor Documentation

## ◆ RailStationTileLayout()

RailStationTileLayout::RailStationTileLayout | ( | const StationSpec * | spec,
|  | uint8_t | platforms,
|  | uint8_t | length
| ) |  |

Definition at line 1197 of file station_cmd.cpp.

## Member Function Documentation

## ◆ begin()

Iterator RailStationTileLayout::begin | ( |  | ) | const
| inline

Definition at line 55 of file station_layout_type.h.

## ◆ end()

std::default_sentinel_t RailStationTileLayout::end | ( |  | ) | const
| inline

Definition at line 56 of file station_layout_type.h.

## Field Documentation

## ◆ layout

std::span<const StationGfx> RailStationTileLayout::layout {}
| private

Predefined tile layout.

Definition at line 18 of file station_layout_type.h.

Referenced by CmdBuildAirport(), and GetStationBlockedPillars().

## ◆ length

uint RailStationTileLayout::length
| private

Length of platforms.

Definition at line 20 of file station_layout_type.h.

Referenced by CmdBuildRoadStop().

## ◆ platforms

uint RailStationTileLayout::platforms
| private

Number of platforms.

Definition at line 19 of file station_layout_type.h.

The documentation for this class was generated from the following files:

- src/station_layout_type.h
- src/station_cmd.cpp