Mercurial > hg > openttd
annotate src/transport_type.h @ 9126:8c450e1754e2 draft
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 07 May 2008 09:07:19 +0000 |
parents | |
children | d23fed9a51e2 |
rev | line source |
---|---|
9126
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
1 /* $Id$ */ |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
2 |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
3 /** @file transport_type.h Base types related to transport. */ |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
4 |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
5 #ifndef TRANSPORT_TYPE_H |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
6 #define TRANSPORT_TYPE_H |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
7 |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
8 typedef uint16 UnitID; |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
9 |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
10 enum TransportType { |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
11 /* These constants are for now linked to the representation of bridges |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
12 * and tunnels, so they can be used by GetTileTrackStatus_TunnelBridge. |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
13 * In an ideal world, these constants would be used everywhere when |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
14 * accessing tunnels and bridges. For now, you should just not change |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
15 * the values for road and rail. |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
16 */ |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
17 TRANSPORT_BEGIN = 0, |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
18 TRANSPORT_RAIL = TRANSPORT_BEGIN, |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
19 TRANSPORT_ROAD, |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
20 TRANSPORT_WATER, |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
21 TRANSPORT_AIR, |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
22 TRANSPORT_END, |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
23 INVALID_TRANSPORT = 0xff, |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
24 }; |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
25 |
8c450e1754e2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
26 #endif /* TRANSPORT_TYPE_H */ |