OpenTTD Source
1.11.0-beta2
|
Go to the documentation of this file.
22 BRIDGE_PIECE_NORTH = 0,
24 BRIDGE_PIECE_INNER_NORTH,
25 BRIDGE_PIECE_INNER_SOUTH,
26 BRIDGE_PIECE_MIDDLE_ODD,
27 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.
byte flags
bit 0 set: disable drawing of far pillars.
Year avail_year
the year where it becomes available
Tile information, used while rendering the tile.
PalSpriteID ** sprite_table
table of sprites for drawing the bridge
BridgeSpec _bridge[MAX_BRIDGES]
The specification of all bridges.
int32 Year
Type for the year, note: 0 based, i.e. starts at the year 0.
void DrawBridgeMiddle(const TileInfo *ti)
Draw the middle bits of a bridge.
uint16 speed
maximum travel speed (1 unit = 1/1.6 mph = 1 km-ish/h)
DoCommandFlag
List of flags for a command.
Foundation
Enumeration for Foundations.
uint32 SpriteID
The number of a sprite, without mapping bits and colourtables.
Struct containing information about a single bridge type.
#define DECLARE_POSTFIX_INCREMENT(enum_type)
Some enums need to have allowed incrementing (i.e.
static const BridgeSpec * GetBridgeSpec(BridgeType i)
Get the specification of a bridge type.
SpriteID sprite
the sprite which is used in the GUI
Common return value for all commands.
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
Slope
Enumeration for the slope-type.
uint BridgeType
Bridge spec number.
byte min_length
the minimum length (not counting start and end tile)
uint32 StringID
Numeric value that represents a string, independent of the selected language.
bool HasBridgeFlatRamp(Slope tileh, Axis axis)
Determines if the track on a bridge ramp is flat or goes up/down.
uint16 max_length
the maximum length (not counting start and end tile)
uint16 price
the price multiplier
uint32 PaletteID
The number of the palette.
Combination of a palette sprite and a 'real' sprite.
#define lengthof(x)
Return the length of an fixed size array.
StringID material
the string that contains the bridge description
Axis
Allow incrementing of DiagDirDiff variables.
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...