@@ -12,13 +12,14 @@
#ifndef BRIDGE_H
#define BRIDGE_H
#include "gfx_type.h"
#include "tile_cmd.h"
/** This enum is related to the definition of bridge pieces,
/**
* This enum is related to the definition of bridge pieces,
* which is used to determine the proper sprite table to use
* while drawing a given bridge part.
*/
enum BridgePieces {
BRIDGE_PIECE_NORTH = 0,
BRIDGE_PIECE_SOUTH,
@@ -33,13 +34,14 @@ enum BridgePieces {
DECLARE_POSTFIX_INCREMENT(BridgePieces)
static const uint MAX_BRIDGES = 13;
typedef uint BridgeType;
/** Struct containing information about a single bridge type
* Struct containing information about a single bridge type
struct BridgeSpec {
Year avail_year; ///< the year where it becomes available
byte min_length; ///< the minimum length (not counting start and end tile)
byte max_length; ///< the maximum length (not counting start and end tile)
uint16 price; ///< the price multiplier