|
OpenTTD Source 20251116-master-g21329071df
|
Station specification. More...
#include <newgrf_station.h>
Public Types | |
| enum class | TileFlag : uint8_t { Pylons = 0 , NoWires = 1 , Blocked = 2 } |
| using | TileFlags = EnumBitSet< TileFlag, uint8_t > |
Data Fields | |
| CargoGRFFileProps | grf_prop |
| Link to NewGRF. | |
| StringID | name |
| Name of this station. | |
| uint8_t | disallowed_platforms |
| Bitmask of number of platforms available for the station. | |
| uint8_t | disallowed_lengths |
| Bitmask of platform lengths available for the station. | |
| std::vector< NewGRFSpriteLayout > | renderdata |
| Number of tile layouts. | |
| uint16_t | cargo_threshold |
| Cargo threshold for choosing between little and lots of cargo. | |
| CargoTypes | cargo_triggers |
| Bitmask of cargo types which cause trigger re-randomizing. | |
| StationCallbackMasks | callback_mask |
| Bitmask of station callbacks that have to be called. | |
| StationSpecFlags | flags |
| Bitmask of flags, bit 0: use different sprite set; bit 1: divide cargo about by station size. | |
| std::vector< TileFlags > | tileflags |
| List of tile flags. | |
| std::vector< BridgeableTileInfo > | bridgeable_info |
| Per tile layout bridge information. | |
| AnimationInfo< StationAnimationTriggers > | animation |
| std::unordered_map< uint16_t, std::vector< uint8_t > > | layouts |
| Custom platform layouts, keyed by platform and length combined. | |
| std::vector< BadgeID > | badges |
Data Fields inherited from NewGRFSpecBase< StationClassID > | |
| StationClassID | class_index |
| Class index of this spec, invalid until class is allocated. | |
| uint16_t | index |
| Index within class of this spec, invalid until inserted into class. | |
Station specification.
Definition at line 123 of file newgrf_station.h.
| using StationSpec::TileFlags = EnumBitSet<TileFlag, uint8_t> |
Definition at line 171 of file newgrf_station.h.
|
strong |
| Enumerator | |
|---|---|
| Pylons | Tile should contain catenary pylons. |
| NoWires | Tile should NOT contain catenary wires. |
| Blocked | Tile is blocked to vehicles. |
Definition at line 166 of file newgrf_station.h.
|
inline |
Definition at line 124 of file newgrf_station.h.
| AnimationInfo<StationAnimationTriggers> StationSpec::animation |
Definition at line 175 of file newgrf_station.h.
| std::vector<BadgeID> StationSpec::badges |
Definition at line 180 of file newgrf_station.h.
| std::vector<BridgeableTileInfo> StationSpec::bridgeable_info |
Per tile layout bridge information.
Definition at line 173 of file newgrf_station.h.
Referenced by IsRailStationBridgeAboveOk().
| StationCallbackMasks StationSpec::callback_mask |
Bitmask of station callbacks that have to be called.
Definition at line 162 of file newgrf_station.h.
Referenced by CheckFlatLandRailStation(), CmdBuildRailStation(), DrawStationTile(), and IsStationAvailable().
| uint16_t StationSpec::cargo_threshold |
Cargo threshold for choosing between little and lots of cargo.
Definition at line 158 of file newgrf_station.h.
Referenced by StationResolverObject::ResolveReal().
| CargoTypes StationSpec::cargo_triggers |
Bitmask of cargo types which cause trigger re-randomizing.
Definition at line 160 of file newgrf_station.h.
Referenced by TriggerStationRandomisation().
| uint8_t StationSpec::disallowed_lengths |
Bitmask of platform lengths available for the station.
0..6 correspond to 1..7, while bit 7 corresponds to >7 tiles long.
Definition at line 142 of file newgrf_station.h.
Referenced by BuildRailStationWindow::CheckSelectedSize(), CmdBuildRailStation(), BuildRailStationWindow::OnClick(), and BuildRailStationWindow::OnPaint().
| uint8_t StationSpec::disallowed_platforms |
Bitmask of number of platforms available for the station.
0..6 correspond to 1..7, while bit 7 corresponds to >7 platforms.
Definition at line 137 of file newgrf_station.h.
Referenced by BuildRailStationWindow::CheckSelectedSize(), CmdBuildRailStation(), BuildRailStationWindow::OnClick(), and BuildRailStationWindow::OnPaint().
| StationSpecFlags StationSpec::flags |
Bitmask of flags, bit 0: use different sprite set; bit 1: divide cargo about by station size.
Definition at line 164 of file newgrf_station.h.
Referenced by DrawCustomStationFoundations(), DrawStationTile(), and StationResolverObject::ResolveReal().
| CargoGRFFileProps StationSpec::grf_prop |
Link to NewGRF.
Definition at line 130 of file newgrf_station.h.
Referenced by AssignSpecToStation(), CmdBuildRailStation(), StationResolverObject::GetDebugID(), StationScopeResolver::GetVariable(), IsStationAvailable(), MoveWaypointsToBaseStations(), PerformStationTileSlopeCheck(), and StationResolverObject::StationResolverObject().
| std::unordered_map<uint16_t, std::vector<uint8_t> > StationSpec::layouts |
Custom platform layouts, keyed by platform and length combined.
Definition at line 178 of file newgrf_station.h.
Referenced by StationChangeInfo().
| StringID StationSpec::name |
Name of this station.
Definition at line 131 of file newgrf_station.h.
| std::vector<NewGRFSpriteLayout> StationSpec::renderdata |
Number of tile layouts.
A minimum of 8 is required is required for stations. 0-1 = plain platform 2-3 = platform with building 4-5 = platform with roof, left side 6-7 = platform with roof, right side Array of tile layouts.
Definition at line 152 of file newgrf_station.h.
Referenced by DrawStationTile(), and StationChangeInfo().
| std::vector<TileFlags> StationSpec::tileflags |
List of tile flags.
Definition at line 172 of file newgrf_station.h.
Referenced by GetStationTileFlags().