|
OpenTTD Source
14.0-beta3
|
void DrawRailCatenary(const TileInfo *ti)
Draws overhead wires and pylons for electric railways.
void DrawRailCatenaryOnBridge(const TileInfo *ti)
Draws wires on a tunnel tile.
const RailTypeInfo * GetRailTypeInfo(RailType railtype)
Returns a pointer to the Railtype information for a given railtype.
void SettingsDisableElrail(int32_t new_value)
_settings_game.disable_elrail callback
Tile information, used while rendering the tile.
bool HasRailCatenary(RailType rt)
Test if a rail type has catenary.
bool IsInvisibilitySet(TransparencyOption to)
Check if the invisibility option bit is set and if we aren't in the game menu (there's never transpar...
RailType
Enumeration for all possible railtypes.
@ RTF_CATENARY
Bit number for drawing a catenary.
GameSettings _settings_game
Game settings of a running game or the scenario editor.
void DrawRailCatenaryOnTunnel(const TileInfo *ti)
Draws wires on a tunnel tile.
bool HasRailCatenaryDrawn(RailType rt)
Test if we should draw rail catenary.
bool disable_elrails
when true, the elrails are disabled
VehicleSettings vehicle
options for vehicles
constexpr debug_inline bool HasBit(const T x, const uint8_t y)
Checks if a bit in a value is set.