transport_type.h

Go to the documentation of this file.
00001 /* $Id: transport_type.h 14491 2008-10-19 15:39:12Z rubidium $ */
00002 
00005 #ifndef TRANSPORT_TYPE_H
00006 #define TRANSPORT_TYPE_H
00007 
00008 typedef uint16 UnitID;
00009 
00011 enum TransportType {
00012   /* These constants are for now linked to the representation of bridges
00013    * and tunnels, so they can be used by GetTileTrackStatus_TunnelBridge.
00014    * In an ideal world, these constants would be used everywhere when
00015    * accessing tunnels and bridges. For now, you should just not change
00016    * the values for road and rail.
00017    */
00018   TRANSPORT_BEGIN = 0,
00019   TRANSPORT_RAIL = TRANSPORT_BEGIN, 
00020   TRANSPORT_ROAD,  
00021   TRANSPORT_WATER, 
00022   TRANSPORT_AIR,   
00023   TRANSPORT_END,
00024   INVALID_TRANSPORT = 0xff,
00025 };
00026 
00027 #endif /* TRANSPORT_TYPE_H */

Generated on Sun Mar 15 22:49:51 2009 for openttd by  doxygen 1.5.6