newgrf_station.h
changeset 3505 e9a3a6b79561
parent 2967 4208a82bf0d9
child 3570 f9749bae861e
equal deleted inserted replaced
3504:546b53897c01 3505:e9a3a6b79561
    25 
    25 
    26 	/**
    26 	/**
    27 	 * Bitmask of number of platforms available for the station.
    27 	 * Bitmask of number of platforms available for the station.
    28 	 * 0..6 correpsond to 1..7, while bit 7 corresponds to >7 platforms.
    28 	 * 0..6 correpsond to 1..7, while bit 7 corresponds to >7 platforms.
    29 	 */
    29 	 */
    30 	byte allowed_platforms;
    30 	byte disallowed_platforms;
    31 	/**
    31 	/**
    32 	 * Bitmask of platform lengths available for the station.
    32 	 * Bitmask of platform lengths available for the station.
    33 	 * 0..6 correpsond to 1..7, while bit 7 corresponds to >7 tiles long.
    33 	 * 0..6 correpsond to 1..7, while bit 7 corresponds to >7 tiles long.
    34 	 */
    34 	 */
    35 	byte allowed_lengths;
    35 	byte disallowed_lengths;
    36 
    36 
    37 	/** Number of tile layouts.
    37 	/** Number of tile layouts.
    38 	 * A minimum of 8 is required is required for stations.
    38 	 * A minimum of 8 is required is required for stations.
    39 	 * 0-1 = plain platform
    39 	 * 0-1 = plain platform
    40 	 * 2-3 = platform with building
    40 	 * 2-3 = platform with building
    41 	 * 4-5 = platform with roof, left side
    41 	 * 4-5 = platform with roof, left side
    42 	 * 6-7 = platform with roof, right side
    42 	 * 6-7 = platform with roof, right side
    43 	 */
    43 	 */
    44 	int tiles;
    44 	int tiles;
    45 	DrawTileSprites *renderdata; ///< Array of tile layouts.
    45 	DrawTileSprites *renderdata; ///< Array of tile layouts.
       
    46 
       
    47 	/** Cargo threshold for choosing between little and lots of cargo
       
    48 	 * @note little/lots are equivalent to the moving/loading states for vehicles
       
    49 	 */
       
    50 	uint16 cargo_threshold;
       
    51 
       
    52 	uint32 cargo_triggers; ///< Bitmask of cargo types which cause trigger re-randomizing
       
    53 
       
    54 	byte callbackmask; ///< Bitmask of callbacks to use, @see newgrf_callbacks.h
       
    55 
       
    56 	byte flags; ///< Bitmask of flags, bit 0: use different sprite set; bit 1: divide cargo about by station size
       
    57 
       
    58 	byte pylons;  ///< Bitmask of base tiles (0 - 7) which should contain elrail pylons
       
    59 	byte wires;   ///< Bitmask of base tiles (0 - 7) which should contain elrail wires
       
    60 	byte blocked; ///< Bitmask of base tiles (0 - 7) which are blocked to trains
    46 
    61 
    47 	byte lengths;
    62 	byte lengths;
    48 	byte *platforms;
    63 	byte *platforms;
    49 	StationLayout **layouts;
    64 	StationLayout **layouts;
    50 
    65