matthijs@9959: /* $Id$ */ matthijs@9959: matthijs@9959: /** @file bridge.h Header file for bridges */ matthijs@9959: matthijs@9959: #ifndef BRIDGE_H matthijs@9959: #define BRIDGE_H matthijs@9959: matthijs@9959: /** Struct containing information about a single bridge type matthijs@9959: */ matthijs@9959: typedef struct Bridge { matthijs@9959: byte avail_year; ///< the year in which the bridge becomes available matthijs@9959: byte min_length; ///< the minimum length of the bridge (not counting start and end tile) matthijs@9959: byte max_length; ///< the maximum length of the bridge (not counting start and end tile) matthijs@9959: uint16 price; ///< the relative price of the bridge matthijs@9959: uint16 speed; ///< maximum travel speed matthijs@9959: PalSpriteID sprite; ///< the sprite which is used in the GUI (possibly with a recolor sprite) matthijs@9959: StringID material; ///< the string that contains the bridge description matthijs@9959: PalSpriteID **sprite_table; ///< table of sprites for drawing the bridge matthijs@9959: byte flags; ///< bit 0 set: disable drawing of far pillars. matthijs@9959: } Bridge; matthijs@9959: matthijs@9959: extern const Bridge orig_bridge[MAX_BRIDGES]; matthijs@9959: extern Bridge _bridge[MAX_BRIDGES]; matthijs@9959: matthijs@9959: #endif /* BRIDGE_H */