15 * @param d base life |
15 * @param d base life |
16 * @param e Bitmask of the climates |
16 * @param e Bitmask of the climates |
17 * @note the 0x80 in parameter b sets the "is carriage bit" |
17 * @note the 0x80 in parameter b sets the "is carriage bit" |
18 * @note the 5 between d and e is the load amount |
18 * @note the 5 between d and e is the load amount |
19 */ |
19 */ |
20 #define MK(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 5, e, 0, 8, 0, 0, 0 } |
20 #define MK(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 5, e, 0, 8, 0, 0, 0, STR_EMPTY } |
21 |
21 |
22 /** Writes the properties of a train carriage into the EngineInfo struct. |
22 /** Writes the properties of a train carriage into the EngineInfo struct. |
23 * @param a Introduction date |
23 * @param a Introduction date |
24 * @param b unk2, flag for carriage(bit 7) and decay speed(bits0..6) |
24 * @param b unk2, flag for carriage(bit 7) and decay speed(bits0..6) |
25 * @param c life length |
25 * @param c life length |
26 * @param d base life |
26 * @param d base life |
27 * @param e Bitmask of the climates |
27 * @param e Bitmask of the climates |
28 * @see MK |
28 * @see MK |
29 * @note the 5 between d and e is the load amount |
29 * @note the 5 between d and e is the load amount |
30 */ |
30 */ |
31 #define MW(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b | 0x80, 5, e, 0, 8, 0, 0, 0 } |
31 #define MW(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b | 0x80, 5, e, 0, 8, 0, 0, 0, STR_EMPTY } |
32 |
32 |
33 /** Writes the properties of a ship into the EngineInfo struct. |
33 /** Writes the properties of a ship into the EngineInfo struct. |
34 * @param a Introduction date |
34 * @param a Introduction date |
35 * @param b unk2, flag for carriage(bit 7) and decay speed(bits0..6) |
35 * @param b unk2, flag for carriage(bit 7) and decay speed(bits0..6) |
36 * @param c life length |
36 * @param c life length |
37 * @param d base life |
37 * @param d base life |
38 * @param e Bitmask of the climates |
38 * @param e Bitmask of the climates |
39 * @see MK |
39 * @see MK |
40 * @note the 10 between d and e is the load amount |
40 * @note the 10 between d and e is the load amount |
41 */ |
41 */ |
42 #define MS(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 10, e, 0, 8, 0, 0, 0 } |
42 #define MS(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 10, e, 0, 8, 0, 0, 0, STR_EMPTY } |
43 |
43 |
44 /** Writes the properties of an aeroplane into the EngineInfo struct. |
44 /** Writes the properties of an aeroplane into the EngineInfo struct. |
45 * @param a Introduction date |
45 * @param a Introduction date |
46 * @param b unk2, flag for carriage(bit 7) and decay speed(bits0..6) |
46 * @param b unk2, flag for carriage(bit 7) and decay speed(bits0..6) |
47 * @param c life length |
47 * @param c life length |
48 * @param d base life |
48 * @param d base life |
49 * @param e Bitmask of the climates |
49 * @param e Bitmask of the climates |
50 * @see MK |
50 * @see MK |
51 * @note the 20 between d and e is the load amount |
51 * @note the 20 between d and e is the load amount |
52 */ |
52 */ |
53 #define MA(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 20, e, 0, 8, 0, 0, 0 } |
53 #define MA(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 20, e, 0, 8, 0, 0, 0, STR_EMPTY } |
54 |
54 |
55 // Climates |
55 // Climates |
56 // T = Temperate |
56 // T = Temperate |
57 // A = Arctic |
57 // A = Arctic |
58 // S = Sub-Tropic |
58 // S = Sub-Tropic |