40void UpdateDisableElrailSettingState(
bool disable,
bool update_vehicles);
constexpr bool Test(Tenum value) const
Test if the enum value is set.
RailTypeFlags flags
Bit mask of rail type flags.
void SettingsDisableElrail(int32_t new_value)
_settings_game.disable_elrail callback
void DrawRailCatenaryOnBridge(const TileInfo *ti)
Draws wires on a tunnel tile.
bool HasRailCatenary(RailType rt)
Test if a rail type has catenary.
void DrawRailCatenaryOnTunnel(const TileInfo *ti)
Draws wires on a tunnel tile.
void DrawRailCatenary(const TileInfo *ti)
Draws overhead wires and pylons for electric railways.
bool HasRailCatenaryDrawn(RailType rt)
Test if we should draw rail catenary.
const RailTypeInfo * GetRailTypeInfo(RailType railtype)
Returns a pointer to the Railtype information for a given railtype.
@ Catenary
Bit number for drawing a catenary.
RailType
Enumeration for all possible railtypes.
GameSettings _settings_game
Game settings of a running game or the scenario editor.
VehicleSettings vehicle
options for vehicles
Tile information, used while rendering the tile.
bool disable_elrails
when true, the elrails are disabled
Generic 'commands' that can be performed on all tiles.
Functions related to transparency.
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...