table/engines.h
changeset 4322 f40bbdf476b3
parent 4242 5738cbc9b2bd
child 4549 106ed18a7675
equal deleted inserted replaced
4321:958a8e9c012b 4322:f40bbdf476b3
    13   * @see EngineInfo
    13   * @see EngineInfo
    14   * @param a Introduction date
    14   * @param a Introduction date
    15   * @param e Rail Type of the vehicle
    15   * @param e Rail Type of the vehicle
    16   * @param f Bitmask of the climates
    16   * @param f Bitmask of the climates
    17   */
    17   */
    18 #define MK(a, b, c, d, e, f) { a, b, c, d, e, f, 0, 8, 0, 0 }
    18 #define MK(a, b, c, d, e, f) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, b, c, d, e, f, 0, 8, 0, 0 }
    19 /** Writes the properties of a train carriage into the EngineInfo struct.
    19 /** Writes the properties of a train carriage into the EngineInfo struct.
    20   * @see EngineInfo
    20   * @see EngineInfo
    21   * @param a Introduction date
    21   * @param a Introduction date
    22   * @param e Rail Type of the vehicle
    22   * @param e Rail Type of the vehicle
    23   * @param f Bitmask of the climates
    23   * @param f Bitmask of the climates
    24   * @note the 0x80 in parameter b sets the "is carriage bit"
    24   * @note the 0x80 in parameter b sets the "is carriage bit"
    25   */
    25   */
    26 #define MW(a, b, c, d, e, f) { a, b | 0x80, c, d, e, f, 0, 8, 0, 0 }
    26 #define MW(a, b, c, d, e, f) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, b | 0x80, c, d, e, f, 0, 8, 0, 0 }
    27 
    27 
    28 // Rail types
    28 // Rail types
    29 // R = Conventional railway
    29 // R = Conventional railway
    30 // E = Electrified railway
    30 // E = Electrified railway
    31 // M = Monorail
    31 // M = Monorail