OpenTTD Source
20240917-master-g9ab0a47812
|
Go to the documentation of this file.
23 BRIDGE_PIECE_NORTH = 0,
25 BRIDGE_PIECE_INNER_NORTH,
26 BRIDGE_PIECE_INNER_SOUTH,
27 BRIDGE_PIECE_MIDDLE_ODD,
28 BRIDGE_PIECE_MIDDLE_EVEN,
int CalcBridgeLenCostFactor(int x)
Calculate the price factor for building a long bridge.
Foundation GetBridgeFoundation(Slope tileh, Axis axis)
Get the foundation for a bridge.
Tile information, used while rendering the tile.
uint32_t StringID
Numeric value that represents a string, independent of the selected language.
PalSpriteID ** sprite_table
table of sprites for drawing the bridge
BridgeSpec _bridge[MAX_BRIDGES]
The specification of all bridges.
void DrawBridgeMiddle(const TileInfo *ti)
Draw the middle bits of a bridge.
Templated helper to make a type-safe 'typedef' representing a single POD value.
uint32_t PaletteID
The number of the palette.
DoCommandFlag
List of flags for a command.
Foundation
Enumeration for Foundations.
Struct containing information about a single bridge type.
#define DECLARE_POSTFIX_INCREMENT(enum_type)
Some enums need to have allowed incrementing (i.e.
SpriteID sprite
the sprite which is used in the GUI
Common return value for all commands.
const BridgeSpec * GetBridgeSpec(BridgeType i)
Get the specification of a bridge type.
static const uint MAX_BRIDGES
Maximal number of available bridge specs.
CommandCost CheckBridgeAvailability(BridgeType bridge_type, uint bridge_len, DoCommandFlag flags=DC_NONE)
Is a bridge of the specified type and length available?
PaletteID pal
the palette which is used in the GUI
#define lengthof(array)
Return the length of an fixed size array.
uint BridgeType
Bridge spec number.
uint32_t SpriteID
The number of a sprite, without mapping bits and colourtables.
bool HasBridgeFlatRamp(Slope tileh, Axis axis)
Determines if the track on a bridge ramp is flat or goes up/down.
Slope
Enumeration for the slope-type.
Axis
Allow incrementing of DiagDirDiff variables.
Combination of a palette sprite and a 'real' sprite.
uint8_t flags
bit 0 set: disable drawing of far pillars.
uint8_t min_length
the minimum length (not counting start and end tile)
TimerGameCalendar::Year avail_year
the year where it becomes available
StringID material
the string that contains the bridge description
void ResetBridges()
Reset the data been eventually changed by the grf loaded.
BridgePieces
This enum is related to the definition of bridge pieces, which is used to determine the proper sprite...