equal
deleted
inserted
replaced
7 |
7 |
8 #include "oldpool.h" |
8 #include "oldpool.h" |
9 #include "rail.h" |
9 #include "rail.h" |
10 #include "sound.h" |
10 #include "sound.h" |
11 |
11 |
|
12 enum RailVehicleTypes { |
|
13 RAILVEH_SINGLEHEAD, |
|
14 RAILVEH_MULTIHEAD, |
|
15 RAILVEH_WAGON, |
|
16 }; |
|
17 |
12 typedef struct RailVehicleInfo { |
18 typedef struct RailVehicleInfo { |
13 byte image_index; |
19 byte image_index; |
14 byte flags; /* 1=multihead engine, 2=wagon */ |
20 RailVehicleTypes railveh_type; |
15 byte base_cost; |
21 byte base_cost; |
16 RailTypeByte railtype; |
22 RailTypeByte railtype; |
17 uint16 max_speed; |
23 uint16 max_speed; |
18 uint16 power; |
24 uint16 power; |
19 uint16 weight; |
25 uint16 weight; |
116 EF_USES_2CC = 1, ///< Vehicle uses two company colours |
122 EF_USES_2CC = 1, ///< Vehicle uses two company colours |
117 EF_RAIL_IS_MU = 2, ///< Rail vehicle is a multiple-unit (DMU/EMU) |
123 EF_RAIL_IS_MU = 2, ///< Rail vehicle is a multiple-unit (DMU/EMU) |
118 }; |
124 }; |
119 |
125 |
120 enum { |
126 enum { |
121 RVI_MULTIHEAD = 1, |
|
122 RVI_WAGON = 2, |
|
123 }; |
|
124 |
|
125 enum { |
|
126 NUM_VEHICLE_TYPES = 6 |
127 NUM_VEHICLE_TYPES = 6 |
127 }; |
128 }; |
128 |
129 |
129 static const EngineID INVALID_ENGINE = 0xFFFF; |
130 static const EngineID INVALID_ENGINE = 0xFFFF; |
130 |
131 |