table/engines.h
changeset 3956 0f43adbc293a
parent 3862 898c8212afa1
child 3997 29c77eab14a4
equal deleted inserted replaced
3955:81e7e25e4599 3956:0f43adbc293a
    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, 0 }
    18 #define MK(a, b, c, d, e, f) { a, b, c, d, e, f, 0, 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, 0 }
    26 #define MW(a, b, c, d, e, f) { a, b | 0x80, c, d, e, f, 0, 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
   322  * @param h running_cost_class / engclass
   322  * @param h running_cost_class / engclass
   323  * @param i capacity
   323  * @param i capacity
   324  * @param j cargo_type
   324  * @param j cargo_type
   325  * @param k ai_rank
   325  * @param k ai_rank
   326  */
   326  */
   327 #define RVI(a, b, c, d, e, f, g, h, i, j, k) { a, b, c, d, e, f, g, h, h, i, j, k, 0, 0, 0, 0, 0, 0 }
   327 #define RVI(a, b, c, d, e, f, g, h, i, j, k) { a, b, c, d, e, f, g, h, h, i, j, k, 0, 0, 0, 0, 0 }
   328 #define M RVI_MULTIHEAD
   328 #define M RVI_MULTIHEAD
   329 #define W RVI_WAGON
   329 #define W RVI_WAGON
   330 #define S 0
   330 #define S 0
   331 #define D 1
   331 #define D 1
   332 #define E 2
   332 #define E 2
   469  * @param e cargo_amount
   469  * @param e cargo_amount
   470  * @param f running_cost
   470  * @param f running_cost
   471  * @param g sound effect
   471  * @param g sound effect
   472  * @param h refittable
   472  * @param h refittable
   473  */
   473  */
   474 #define SVI(a, b, c, d, e, f, g, h) { a, b, c, d, e, f, g, h, 0 }
   474 #define SVI(a, b, c, d, e, f, g, h) { a, b, c, d, e, f, g, h }
   475 const ShipVehicleInfo orig_ship_vehicle_info[NUM_SHIP_ENGINES] = {
   475 const ShipVehicleInfo orig_ship_vehicle_info[NUM_SHIP_ENGINES] = {
   476 	//   image_index  cargo_type     cargo_amount                 refittable
   476 	//   image_index  cargo_type     cargo_amount                 refittable
   477 	//   |    base_cost |              |    running_cost          |
   477 	//   |    base_cost |              |    running_cost          |
   478 	//   |    |    max_speed           |    |  sfx                |
   478 	//   |    |    max_speed           |    |  sfx                |
   479 	//   |    |    |    |              |    |  |                  |
   479 	//   |    |    |    |              |    |  |                  |
   501  * @param f acceleration
   501  * @param f acceleration
   502  * @param g max_speed
   502  * @param g max_speed
   503  * @param h mail_capacity
   503  * @param h mail_capacity
   504  * @param i passenger_capacity
   504  * @param i passenger_capacity
   505  */
   505  */
   506 #define AVI(a, b, c, d, e, f, g, h, i) { a, b, c, d, e, f, g, h, i, 0 }
   506 #define AVI(a, b, c, d, e, f, g, h, i) { a, b, c, d, e, f, g, h, i }
   507 #define H 0
   507 #define H 0
   508 #define P 1
   508 #define P 1
   509 #define J 3
   509 #define J 3
   510 const AircraftVehicleInfo orig_aircraft_vehicle_info[NUM_AIRCRAFT_ENGINES] = {
   510 const AircraftVehicleInfo orig_aircraft_vehicle_info[NUM_AIRCRAFT_ENGINES] = {
   511 	//    image_index         sfx                         acceleration
   511 	//    image_index         sfx                         acceleration
   568  * @param d sound effect
   568  * @param d sound effect
   569  * @param e max_speed
   569  * @param e max_speed
   570  * @param f capacity
   570  * @param f capacity
   571  * @param g cargo_type
   571  * @param g cargo_type
   572  */
   572  */
   573 #define RVI(a, b, c, d, e, f, g) { a, b, c, d, e, f, g, 0 }
   573 #define RVI(a, b, c, d, e, f, g) { a, b, c, d, e, f, g }
   574 const RoadVehicleInfo orig_road_vehicle_info[NUM_ROAD_ENGINES] = {
   574 const RoadVehicleInfo orig_road_vehicle_info[NUM_ROAD_ENGINES] = {
   575 	//    image_index       sfx                                 max_speed
   575 	//    image_index       sfx                                 max_speed
   576 	//    |    base_cost    |                                   |   capacity
   576 	//    |    base_cost    |                                   |   capacity
   577 	//    |    |    running_cost                                |   |  cargo_type
   577 	//    |    |    running_cost                                |   |  cargo_type
   578 	//    |    |    |       |                                   |   |  |
   578 	//    |    |    |       |                                   |   |  |