station.h
changeset 3032 3d607ca2d8fc
parent 2967 4208a82bf0d9
child 3092 e790a2dbda83
equal deleted inserted replaced
3031:bd5cae1efa8c 3032:3d607ca2d8fc
    26 	RS_TRUCK
    26 	RS_TRUCK
    27 } RoadStopType;
    27 } RoadStopType;
    28 
    28 
    29 enum {
    29 enum {
    30 	INVALID_STATION = 0xFFFF,
    30 	INVALID_STATION = 0xFFFF,
    31 	INVALID_SLOT = 0xFFFF,
       
    32 	NUM_SLOTS = 2,
    31 	NUM_SLOTS = 2,
    33 	ROAD_STOP_LIMIT = 8,
    32 	ROAD_STOP_LIMIT = 8,
    34 };
    33 };
    35 
    34 
    36 typedef uint16 StationID;
    35 typedef uint16 StationID;
    38 typedef struct RoadStop {
    37 typedef struct RoadStop {
    39 	TileIndex xy;
    38 	TileIndex xy;
    40 	bool used;
    39 	bool used;
    41 	byte status;
    40 	byte status;
    42 	uint32 index;
    41 	uint32 index;
    43 	uint16 slot[NUM_SLOTS];
    42 	VehicleID slot[NUM_SLOTS];
    44 	StationID station;
    43 	StationID station;
    45 	uint8 type;
    44 	uint8 type;
    46 	struct RoadStop *next;
    45 	struct RoadStop *next;
    47 	struct RoadStop *prev;
    46 	struct RoadStop *prev;
    48 } RoadStop;
    47 } RoadStop;