Functions related to bit mathematics.
constexpr Timpl & Flip()
Flip all bits.
Functions related to the gfx engine.
void MarkWholeScreenDirty()
This function mark the whole screen as dirty.
EnumBitSet< DisplayOption, uint8_t > DisplayOptions
Bitset of DisplayOption elements.
Types related to stations.
void ResetRestoreAllTransparency()
Set or clear all non-locked transparency options.
StationFacilities _facility_display_opt
What station facilities to draw.
TransparencyOptions _invisibility_opt
The bits that should be invisible.
void ToggleTransparency(TransparencyOption to)
Toggle the transparency option bit.
bool IsTransparencySet(TransparencyOption to)
Check if the transparency option bit is set and if we aren't in the game menu (there's never transpar...
void ToggleInvisibility(TransparencyOption to)
Toggle the invisibility option bit.
EnumBitSet< TransparencyOption, uint32_t > TransparencyOptions
Bitset of TransparencyOption elements.
TransparencyOptions _transparency_opt
The bits that should be transparent.
TransparencyOptions _transparency_lock
Prevent these bits from flipping with X.
void ToggleInvisibilityWithTransparency(TransparencyOption to)
Toggles between invisible and solid state.
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...
DisplayOptions _display_opt
What do we want to draw/do?
TransparencyOption
Transparency option bits: which position in _transparency_opt stands for which transparency.
@ Structures
other objects such as transmitters and lighthouses
@ Invalid
Invalid transparency option.
@ Text
loading and cost/income text
@ Buildings
company buildings - depots, stations, HQ, ...
void ToggleTransparencyLock(TransparencyOption to)
Toggle the transparency lock bit.