27 return _signal_along_trackdir[trackdir];
36 extern const byte _signal_against_trackdir[
TRACKDIR_END];
37 return _signal_against_trackdir[trackdir];
46 extern const byte _signal_on_track[
TRACK_END];
47 return _signal_on_track[track];
All types related to tracks.
Free and has no pre-signal exits or at least one green exit.
Different types to 'show' directions.
void AddTrackToSignalBuffer(TileIndex tile, Track track, Owner owner)
Add track to signal update buffer.
void UpdateSignalsInBuffer()
Update signals in buffer Called from 'outside'.
Track
These are used to specify a single track.
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...
Segment is a PBS segment.
Trackdir
Enumeration for tracks and directions.
DiagDirection
Enumeration for diagonal directions.
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...
void AddSideToSignalBuffer(TileIndex tile, DiagDirection side, Owner owner)
Add side of tile to signal update buffer.
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.
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 ...
SigSegState
State of the signal segment.
Types related to companies.
void SetSignalsOnBothDir(TileIndex tile, Track track, Owner owner)
Update signals at segments that are at both ends of given (existent or non-existent) track...
Owner
Enum for all companies/owners.