2 |
2 |
3 #ifndef ENGINES_H |
3 #ifndef ENGINES_H |
4 #define ENGINES_H |
4 #define ENGINES_H |
5 |
5 |
6 /** @file table/engines.h |
6 /** @file table/engines.h |
7 * This file contains all the data for vehicles |
7 * This file contains all the data for vehicles |
8 */ |
8 */ |
9 |
9 |
10 #include "../sound.h" |
10 #include "../sound.h" |
11 |
11 |
12 /** Writes the properties of a vehicle into the EngineInfo struct. |
12 /** Writes the properties of a vehicle into the EngineInfo struct. |
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) { DAYS_TILL_ORIGINAL_BASE_YEAR + 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) { DAYS_TILL_ORIGINAL_BASE_YEAR + 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 |