Files
@ r8781:bd977c904a17
Branch filter:
Location: cpp/openttd-patchpack/source/src/station_type.h - annotation
r8781:bd977c904a17
1.2 KiB
text/x-c
(svn r12482) -Fix: [build train] we don't need to have a depot in order to just check the price of a rail vehicle so don't check for compatible rails on the tile either
also wagons will only need tracks they can drive on in order to be build so there is no reason to check for power in the depot
also wagons will only need tracks they can drive on in order to be build so there is no reason to check for power in the depot
r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 r8769:6c1f27d01bf5 | /* $Id$ */
/** @file station_type.h Types related to stations. */
#ifndef STATION_TYPE_H
#define STATION_TYPE_H
typedef uint16 StationID;
typedef uint16 RoadStopID;
struct Station;
struct RoadStop;
static const StationID INVALID_STATION = 0xFFFF;
enum StationType {
STATION_RAIL,
STATION_AIRPORT,
STATION_TRUCK,
STATION_BUS,
STATION_OILRIG,
STATION_DOCK,
STATION_BUOY
};
enum {
FACIL_TRAIN = 0x01,
FACIL_TRUCK_STOP = 0x02,
FACIL_BUS_STOP = 0x04,
FACIL_AIRPORT = 0x08,
FACIL_DOCK = 0x10,
};
enum {
// HVOT_PENDING_DELETE = 1 << 0, // not needed anymore
HVOT_TRAIN = 1 << 1,
HVOT_BUS = 1 << 2,
HVOT_TRUCK = 1 << 3,
HVOT_AIRCRAFT = 1 << 4,
HVOT_SHIP = 1 << 5,
/* This bit is used to mark stations. No, it does not belong here, but what
* can we do? ;-) */
HVOT_BUOY = 1 << 6
};
enum CatchmentArea {
CA_NONE = 0,
CA_BUS = 3,
CA_TRUCK = 3,
CA_TRAIN = 4,
CA_DOCK = 5,
CA_UNMODIFIED = 4, ///< Used when _patches.modified_catchment is false
MAX_CATCHMENT = 10, ///< Airports have a catchment up to this number.
};
#endif /* STATION_TYPE_H */
|