summaryrefslogtreecommitdiff
path: root/src/transport_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-07 09:07:19 +0000
committerrubidium <rubidium@openttd.org>2008-05-07 09:07:19 +0000
commit7ccda80b0bae730f17d6863df84e78ea455ff1db (patch)
tree4c92772a01d16e252b764639246b6727529d3b0f /src/transport_type.h
parent8fea5a62c9190cb86128c89f92c89ea1c656c3f0 (diff)
downloadopenttd-7ccda80b0bae730f17d6863df84e78ea455ff1db.tar.xz
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
Diffstat (limited to 'src/transport_type.h')
-rw-r--r--src/transport_type.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/transport_type.h b/src/transport_type.h
new file mode 100644
index 000000000..c23afbd7c
--- /dev/null
+++ b/src/transport_type.h
@@ -0,0 +1,26 @@
+/* $Id$ */
+
+/** @file transport_type.h Base types related to transport. */
+
+#ifndef TRANSPORT_TYPE_H
+#define TRANSPORT_TYPE_H
+
+typedef uint16 UnitID;
+
+enum TransportType {
+ /* These constants are for now linked to the representation of bridges
+ * and tunnels, so they can be used by GetTileTrackStatus_TunnelBridge.
+ * In an ideal world, these constants would be used everywhere when
+ * accessing tunnels and bridges. For now, you should just not change
+ * the values for road and rail.
+ */
+ TRANSPORT_BEGIN = 0,
+ TRANSPORT_RAIL = TRANSPORT_BEGIN,
+ TRANSPORT_ROAD,
+ TRANSPORT_WATER,
+ TRANSPORT_AIR,
+ TRANSPORT_END,
+ INVALID_TRANSPORT = 0xff,
+};
+
+#endif /* TRANSPORT_TYPE_H */