author | peter1138 |
Sun, 03 Aug 2008 17:35:08 +0000 | |
changeset 9834 | 7474149531c1 |
parent 9413 | 7042a8ec3fa8 |
child 9913 | d9ce89020cc0 |
permissions | -rw-r--r-- |
8769
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
1 |
/* $Id$ */ |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
2 |
|
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
3 |
/** @file station_type.h Types related to stations. */ |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
4 |
|
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
5 |
#ifndef STATION_TYPE_H |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
6 |
#define STATION_TYPE_H |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
7 |
|
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
8 |
typedef uint16 StationID; |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
9 |
typedef uint16 RoadStopID; |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
10 |
|
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
11 |
struct Station; |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
12 |
struct RoadStop; |
8787
41d9d5adbe87
(svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff).
rubidium
parents:
8785
diff
changeset
|
13 |
struct StationSpec; |
8769
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
14 |
|
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
15 |
static const StationID INVALID_STATION = 0xFFFF; |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
16 |
|
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
17 |
enum StationType { |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
18 |
STATION_RAIL, |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
19 |
STATION_AIRPORT, |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
20 |
STATION_TRUCK, |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
21 |
STATION_BUS, |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
22 |
STATION_OILRIG, |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
23 |
STATION_DOCK, |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
24 |
STATION_BUOY |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
25 |
}; |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
26 |
|
8785
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
8769
diff
changeset
|
27 |
/** Types of RoadStops */ |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
8769
diff
changeset
|
28 |
enum RoadStopType { |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
8769
diff
changeset
|
29 |
ROADSTOP_BUS, ///< A standard stop for buses |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
8769
diff
changeset
|
30 |
ROADSTOP_TRUCK ///< A standard stop for trucks |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
8769
diff
changeset
|
31 |
}; |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
8769
diff
changeset
|
32 |
|
8769
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
33 |
enum { |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
34 |
FACIL_TRAIN = 0x01, |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
35 |
FACIL_TRUCK_STOP = 0x02, |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
36 |
FACIL_BUS_STOP = 0x04, |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
37 |
FACIL_AIRPORT = 0x08, |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
38 |
FACIL_DOCK = 0x10, |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
39 |
}; |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
40 |
|
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
41 |
enum { |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
42 |
// HVOT_PENDING_DELETE = 1 << 0, // not needed anymore |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
43 |
HVOT_TRAIN = 1 << 1, |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
44 |
HVOT_BUS = 1 << 2, |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
45 |
HVOT_TRUCK = 1 << 3, |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
46 |
HVOT_AIRCRAFT = 1 << 4, |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
47 |
HVOT_SHIP = 1 << 5, |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
48 |
/* This bit is used to mark stations. No, it does not belong here, but what |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
49 |
* can we do? ;-) */ |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
50 |
HVOT_BUOY = 1 << 6 |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
51 |
}; |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
52 |
|
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
53 |
enum CatchmentArea { |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
54 |
CA_NONE = 0, |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
55 |
CA_BUS = 3, |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
56 |
CA_TRUCK = 3, |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
57 |
CA_TRAIN = 4, |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
58 |
CA_DOCK = 5, |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
59 |
|
9413
7042a8ec3fa8
(svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
rubidium
parents:
9354
diff
changeset
|
60 |
CA_UNMODIFIED = 4, ///< Used when _settings_game.station.modified_catchment is false |
8769
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
61 |
|
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
62 |
MAX_CATCHMENT = 10, ///< Airports have a catchment up to this number. |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
63 |
}; |
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
64 |
|
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
diff
changeset
|
65 |
#endif /* STATION_TYPE_H */ |