10455
|
1 |
/* $Id$ */
|
|
2 |
|
|
3 |
/** @file transport_type.h Base types related to transport. */
|
|
4 |
|
|
5 |
#ifndef TRANSPORT_TYPE_H
|
|
6 |
#define TRANSPORT_TYPE_H
|
|
7 |
|
|
8 |
typedef uint16 UnitID;
|
|
9 |
|
|
10 |
enum TransportType {
|
|
11 |
/* These constants are for now linked to the representation of bridges
|
|
12 |
* and tunnels, so they can be used by GetTileTrackStatus_TunnelBridge.
|
|
13 |
* In an ideal world, these constants would be used everywhere when
|
|
14 |
* accessing tunnels and bridges. For now, you should just not change
|
|
15 |
* the values for road and rail.
|
|
16 |
*/
|
|
17 |
TRANSPORT_BEGIN = 0,
|
|
18 |
TRANSPORT_RAIL = TRANSPORT_BEGIN,
|
|
19 |
TRANSPORT_ROAD,
|
|
20 |
TRANSPORT_WATER,
|
|
21 |
TRANSPORT_AIR,
|
|
22 |
TRANSPORT_END,
|
|
23 |
INVALID_TRANSPORT = 0xff,
|
|
24 |
};
|
|
25 |
|
|
26 |
#endif /* TRANSPORT_TYPE_H */
|