MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetSingleSignalState

Function GetSingleSignalState

src/rail_map.h:372–375  ·  view source on GitHub ↗

* Get the state of a single signal * @param t the tile to get the signal state for * @param signalbit the signal * @return the state of the signal */

Source from the content-addressed store, hash-verified

370 * @return the state of the signal
371 */
372inline SignalState GetSingleSignalState(Tile t, uint8_t signalbit)
373{
374 return (SignalState)HasBit(GetSignalStates(t), signalbit);
375}
376
377/**
378 * Set whether the given signals are present (Along/AgainstTrackDir)

Callers 1

DrawSignalsFunction · 0.85

Calls 2

HasBitFunction · 0.85
GetSignalStatesFunction · 0.85

Tested by

no test coverage detected