24 BRIDGE_PIECE_NORTH = 0,
26 BRIDGE_PIECE_INNER_NORTH,
27 BRIDGE_PIECE_INNER_SOUTH,
28 BRIDGE_PIECE_MIDDLE_ODD,
29 BRIDGE_PIECE_MIDDLE_EVEN,
void ResetBridges()
Reset the data been eventually changed by the grf loaded.
uint32 PaletteID
The number of the palette.
Year avail_year
the year where it becomes available
int CalcBridgeLenCostFactor(int x)
Calculate the price factor for building a long bridge.
Tile information, used while rendering the tile.
PalSpriteID ** sprite_table
table of sprites for drawing the bridge
byte flags
bit 0 set: disable drawing of far pillars.
Combination of a palette sprite and a 'real' sprite.
uint16 speed
maximum travel speed (1 unit = 1/1.6 mph = 1 km-ish/h)
Common return value for all commands.
int32 Year
Type for the year, note: 0 based, i.e. starts at the year 0.
Struct containing information about a single bridge type.
BridgeSpec _bridge[MAX_BRIDGES]
The specification of all bridges.
Foundation
Enumeration for Foundations.
Foundation GetBridgeFoundation(Slope tileh, Axis axis)
Get the foundation for a bridge.
DoCommandFlag
List of flags for a command.
static const BridgeSpec * GetBridgeSpec(BridgeType i)
Get the specification of a bridge type.
SpriteID sprite
the sprite which is used in the GUI
byte min_length
the minimum length (not counting start and end tile)
PaletteID pal
the palette which is used in the GUI
BridgePieces
This enum is related to the definition of bridge pieces, which is used to determine the proper sprite...
#define lengthof(x)
Return the length of an fixed size array.
CommandCost CheckBridgeAvailability(BridgeType bridge_type, uint bridge_len, DoCommandFlag flags=DC_NONE)
Is a bridge of the specified type and length available?
uint32 StringID
Numeric value that represents a string, independent of the selected language.
uint16 price
the price multiplier
StringID material
the string that contains the bridge description
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)
uint32 SpriteID
The number of a sprite, without mapping bits and colourtables.
static const uint MAX_BRIDGES
Maximal number of available bridge specs.
Slope
Enumeration for the slope-type.
uint BridgeType
Bridge spec number.
#define DECLARE_POSTFIX_INCREMENT(type)
Some enums need to have allowed incrementing (i.e.
void DrawBridgeMiddle(const TileInfo *ti)
Draw the middle bits of a bridge.
Axis
Allow incrementing of DiagDirDiff variables.
Types related to the graphics and/or input devices.
Generic 'commands' that can be performed on all tiles.