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