OpenTTD Source
1.11.0-beta2
|
Go to the documentation of this file.
25 return _signal_along_trackdir[trackdir];
34 extern const byte _signal_against_trackdir[
TRACKDIR_END];
35 return _signal_against_trackdir[trackdir];
44 extern const byte _signal_on_track[
TRACK_END];
45 return _signal_on_track[track];
static byte SignalAgainstTrackdir(Trackdir trackdir)
Maps a trackdir to the bit that stores its status in the map arrays, in the direction against the tra...
uint32 TileIndex
The index/ID of a Tile.
Owner
Enum for all companies/owners.
SigSegState UpdateSignalsOnSegment(TileIndex tile, DiagDirection side, Owner owner)
Update signals, starting at one side of a tile Will check tile next to this at opposite side too.
@ SIGSEG_PBS
Segment is a PBS segment.
DiagDirection
Enumeration for diagonal directions.
SigSegState
State of the signal segment.
@ TRACK_END
Used for iterations.
void AddTrackToSignalBuffer(TileIndex tile, Track track, Owner owner)
Add track to signal update buffer.
void SetSignalsOnBothDir(TileIndex tile, Track track, Owner owner)
Update signals at segments that are at both ends of given (existent or non-existent) track.
@ TRACKDIR_END
Used for iterations.
@ SIGSEG_FULL
Occupied by a train.
static byte SignalOnTrack(Track track)
Maps a Track to the bits that store the status of the two signals that can be present on the given tr...
void UpdateSignalsInBuffer()
Update signals in buffer Called from 'outside'.
Trackdir
Enumeration for tracks and directions.
void AddSideToSignalBuffer(TileIndex tile, DiagDirection side, Owner owner)
Add side of tile to signal update buffer.
Track
These are used to specify a single track.
@ SIGSEG_FREE
Free and has no pre-signal exits or at least one green exit.
static byte SignalAlongTrackdir(Trackdir trackdir)
Maps a trackdir to the bit that stores its status in the map arrays, in the direction along with the ...