9837
|
1 |
/* $Id$ */
|
|
2 |
|
|
3 |
/** @file station_type.h Types related to stations. */
|
|
4 |
|
|
5 |
#ifndef STATION_TYPE_H
|
|
6 |
#define STATION_TYPE_H
|
|
7 |
|
|
8 |
typedef uint16 StationID;
|
|
9 |
typedef uint16 RoadStopID;
|
|
10 |
|
|
11 |
struct Station;
|
|
12 |
struct RoadStop;
|
|
13 |
struct StationSpec;
|
|
14 |
|
|
15 |
static const StationID INVALID_STATION = 0xFFFF;
|
|
16 |
|
|
17 |
enum StationType {
|
|
18 |
STATION_RAIL,
|
|
19 |
STATION_AIRPORT,
|
|
20 |
STATION_TRUCK,
|
|
21 |
STATION_BUS,
|
|
22 |
STATION_OILRIG,
|
|
23 |
STATION_DOCK,
|
|
24 |
STATION_BUOY
|
|
25 |
};
|
|
26 |
|
|
27 |
/** Types of RoadStops */
|
|
28 |
enum RoadStopType {
|
|
29 |
ROADSTOP_BUS, ///< A standard stop for buses
|
|
30 |
ROADSTOP_TRUCK ///< A standard stop for trucks
|
|
31 |
};
|
|
32 |
|
|
33 |
enum {
|
|
34 |
FACIL_TRAIN = 0x01,
|
|
35 |
FACIL_TRUCK_STOP = 0x02,
|
|
36 |
FACIL_BUS_STOP = 0x04,
|
|
37 |
FACIL_AIRPORT = 0x08,
|
|
38 |
FACIL_DOCK = 0x10,
|
|
39 |
};
|
|
40 |
|
|
41 |
enum {
|
|
42 |
// HVOT_PENDING_DELETE = 1 << 0, // not needed anymore
|
|
43 |
HVOT_TRAIN = 1 << 1,
|
|
44 |
HVOT_BUS = 1 << 2,
|
|
45 |
HVOT_TRUCK = 1 << 3,
|
|
46 |
HVOT_AIRCRAFT = 1 << 4,
|
|
47 |
HVOT_SHIP = 1 << 5,
|
|
48 |
/* This bit is used to mark stations. No, it does not belong here, but what
|
|
49 |
* can we do? ;-) */
|
|
50 |
HVOT_BUOY = 1 << 6
|
|
51 |
};
|
|
52 |
|
|
53 |
enum CatchmentArea {
|
|
54 |
CA_NONE = 0,
|
|
55 |
CA_BUS = 3,
|
|
56 |
CA_TRUCK = 3,
|
|
57 |
CA_TRAIN = 4,
|
|
58 |
CA_DOCK = 5,
|
|
59 |
|
10776
|
60 |
CA_UNMODIFIED = 4, ///< Used when _settings_game.station.modified_catchment is false
|
9837
|
61 |
|
|
62 |
MAX_CATCHMENT = 10, ///< Airports have a catchment up to this number.
|
|
63 |
};
|
|
64 |
|
|
65 |
#endif /* STATION_TYPE_H */
|