|
OpenTTD Source 20260531-master-g0e951f3528
|
Data related to rail tracks. More...
Go to the source code of this file.
Variables | |
| const DiagDirectionIndexArray< TrackdirBits > | _exitdir_reaches_trackdirs |
| Maps a diagonal direction to the all trackdirs that are connected to any track entering in this direction (including those making 90 degree turns). | |
| const TrackdirIndexArray< Trackdir > | _next_trackdir |
| Next trackdir to use when moving to a new tile for each current trackdir. | |
| const TrackIndexArray< TrackdirBits > | _track_crosses_trackdirs |
| Maps a trackdir to all trackdirs that make 90 deg turns with it. | |
| const TrackIndexArray< TrackBits > | _track_crosses_tracks |
| Maps a track to all tracks that make 90 deg turns with it. | |
| const TrackdirIndexArray< DiagDirection > | _trackdir_to_exitdir |
| Maps a trackdir to the (4-way) direction the tile is exited when following that trackdir. | |
| const TrackIndexArray< DiagDirectionIndexArray< Trackdir > > | _track_exitdir_to_trackdir |
| Maps a track and an (4-way) dir to the trackdir that represents the track with the exit in the given direction. | |
| const TrackIndexArray< DiagDirectionIndexArray< Trackdir > > | _track_enterdir_to_trackdir |
| Maps a track and an (4-way) dir to the trackdir that represents the track with the entry in the given direction. | |
| const TrackIndexArray< DirectionIndexArray< Trackdir > > | _track_direction_to_trackdir |
| Maps a track and a full (8-way) direction to the trackdir that represents the track running in the given direction. | |
| const DiagDirectionIndexArray< Trackdir > | _dir_to_diag_trackdir |
| Maps a (4-way) direction to the diagonal trackdir that runs in that direction. | |
| const CornerIndexArray< TrackBits > | _corner_to_trackbits |
| Maps a single horizontal/vertical trackbit that is in a specific tile corner. | |
| const TrackdirBits | _uphill_trackdirs [] |
Data related to rail tracks.
Definition in file track_data.h.
|
extern |
Maps a single horizontal/vertical trackbit that is in a specific tile corner.
Referenced by CornerToTrackBits().
|
extern |
Maps a (4-way) direction to the diagonal trackdir that runs in that direction.
Referenced by DiagDirToDiagTrackdir().
|
extern |
Maps a diagonal direction to the all trackdirs that are connected to any track entering in this direction (including those making 90 degree turns).
Referenced by DiagdirReachesTrackdirs(), and TrackdirReachesTrackdirs().
|
extern |
Next trackdir to use when moving to a new tile for each current trackdir.
Referenced by NextTrackdir().
|
extern |
Maps a trackdir to all trackdirs that make 90 deg turns with it.
Referenced by TrackdirCrossesTrackdirs().
|
extern |
Maps a track to all tracks that make 90 deg turns with it.
Referenced by TrackCrossesTracks().
|
extern |
Maps a track and a full (8-way) direction to the trackdir that represents the track running in the given direction.
Referenced by TrackDirectionToTrackdir().
|
extern |
Maps a track and an (4-way) dir to the trackdir that represents the track with the entry in the given direction.
Referenced by TrackEnterdirToTrackdir().
|
extern |
Maps a track and an (4-way) dir to the trackdir that represents the track with the exit in the given direction.
Referenced by TrackExitdirToTrackdir().
|
extern |
Maps a trackdir to the (4-way) direction the tile is exited when following that trackdir.
Referenced by TrackdirToExitdir().