equal
deleted
inserted
replaced
4 #define VEHICLE_H |
4 #define VEHICLE_H |
5 |
5 |
6 #include "oldpool.h" |
6 #include "oldpool.h" |
7 #include "order.h" |
7 #include "order.h" |
8 #include "rail.h" |
8 #include "rail.h" |
|
9 |
|
10 /** The returned bits of VehicleEnterTile. */ |
|
11 enum VehicleEnterTileStatus { |
|
12 VETS_ENTERED_STATION = 1, ///< The vehicle entered a station |
|
13 VETS_ENTERED_WORMHOLE = 2, ///< The vehicle either entered a bridge, tunnel or depot tile (this includes the last tile of the bridge/tunnel) |
|
14 VETS_CANNOT_ENTER = 3, ///< The vehicle cannot enter the tile |
|
15 |
|
16 /** |
|
17 * Shift the VehicleEnterTileStatus this many bits |
|
18 * to the right to get the station ID when |
|
19 * VETS_ENTERED_STATION is set |
|
20 */ |
|
21 VETS_STATION_ID_OFFSET = 8, |
|
22 |
|
23 /** Bit sets of the above specified bits */ |
|
24 VETSB_CONTINUE = 0, ///< The vehicle can continue normally |
|
25 VETSB_ENTERED_STATION = 1 << VETS_ENTERED_STATION, ///< The vehicle entered a station |
|
26 VETSB_ENTERED_WORMHOLE = 1 << VETS_ENTERED_WORMHOLE, ///< The vehicle either entered a bridge, tunnel or depot tile (this includes the last tile of the bridge/tunnel) |
|
27 VETSB_CANNOT_ENTER = 1 << VETS_CANNOT_ENTER, ///< The vehicle cannot enter the tile |
|
28 }; |
9 |
29 |
10 enum { |
30 enum { |
11 VEH_Train, |
31 VEH_Train, |
12 VEH_Road, |
32 VEH_Road, |
13 VEH_Ship, |
33 VEH_Ship, |