(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
parent
8fea5a62c9
commit
7ccda80b0b
@ -0,0 +1,20 @@
|
||||
/* $Id$ */
|
||||
|
||||
/** @file landscape_type.h Types related to the landscape. */
|
||||
|
||||
#ifndef LANDSCAPE_TYPE_H
|
||||
#define LANDSCAPE_TYPE_H
|
||||
|
||||
typedef byte LandscapeID;
|
||||
|
||||
/* Landscape types */
|
||||
enum {
|
||||
LT_TEMPERATE = 0,
|
||||
LT_ARCTIC = 1,
|
||||
LT_TROPIC = 2,
|
||||
LT_TOYLAND = 3,
|
||||
|
||||
NUM_LANDSCAPE = 4,
|
||||
};
|
||||
|
||||
#endif /* LANDSCAPE_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 */
|
Loading…
Reference in New Issue