src/vehicle.h
branchcpp_gui
changeset 6254 abc6ad7c035c
parent 6253 23983700e3d7
child 6268 4b5241e5dd10
equal deleted inserted replaced
6253:23983700e3d7 6254:abc6ad7c035c
    43 	RVSB_IN_DEPOT                = 0xFE,                      ///< The vehicle is in a depot
    43 	RVSB_IN_DEPOT                = 0xFE,                      ///< The vehicle is in a depot
    44 	RVSB_WORMHOLE                = 0xFF,                      ///< The vehicle is in a tunnel and/or bridge
    44 	RVSB_WORMHOLE                = 0xFF,                      ///< The vehicle is in a tunnel and/or bridge
    45 
    45 
    46 	/* Bit numbers */
    46 	/* Bit numbers */
    47 	RVS_USING_SECOND_BAY         =    1,                      ///< Only used while in a road stop
    47 	RVS_USING_SECOND_BAY         =    1,                      ///< Only used while in a road stop
       
    48 	RVS_IS_STOPPING              =    2,                      ///< Only used for drive-through stops. Vehicle will stop here
    48 	RVS_DRIVE_SIDE               =    4,                      ///< Only used when retrieving move data and for turning vehicles
    49 	RVS_DRIVE_SIDE               =    4,                      ///< Only used when retrieving move data and for turning vehicles
    49 	RVS_IN_ROAD_STOP             =    5,                      ///< The vehicle is in a road stop
    50 	RVS_IN_ROAD_STOP             =    5,                      ///< The vehicle is in a road stop
       
    51 	RVS_IN_DT_ROAD_STOP          =    6,                      ///< The vehicle is in a drive-through road stop
    50 
    52 
    51 	/* Bit sets of the above specified bits */
    53 	/* Bit sets of the above specified bits */
    52 	RVSB_USING_SECOND_BAY        = 1 << RVS_USING_SECOND_BAY, ///< Only used while in a road stop
    54 	RVSB_USING_SECOND_BAY        = 1 << RVS_USING_SECOND_BAY, ///< Only used while in a road stop
    53 	RVSB_DRIVE_SIDE              = 1 << RVS_DRIVE_SIDE,       ///< Only used when retrieving move data and for turning vehicles
    55 	RVSB_DRIVE_SIDE              = 1 << RVS_DRIVE_SIDE,       ///< Only used when retrieving move data and for turning vehicles
    54 	RVSB_IN_ROAD_STOP            = 1 << RVS_IN_ROAD_STOP,     ///< The vehicle is in a road stop
    56 	RVSB_IN_ROAD_STOP            = 1 << RVS_IN_ROAD_STOP,     ///< The vehicle is in a road stop
    55 	RVSB_IN_ROAD_STOP_END        = RVSB_IN_ROAD_STOP + TRACKDIR_END,
    57 	RVSB_IN_ROAD_STOP_END        = RVSB_IN_ROAD_STOP + TRACKDIR_END,
       
    58 	RVSB_IN_DT_ROAD_STOP         = 1 << RVS_IN_DT_ROAD_STOP,  ///< The vehicle is in a drive-through road stop
       
    59 	RVSB_IN_DT_ROAD_STOP_END     = RVSB_IN_DT_ROAD_STOP + TRACKDIR_END,
    56 
    60 
    57 	RVSB_TRACKDIR_MASK           = 0x0F,                      ///< The mask used to extract track dirs
    61 	RVSB_TRACKDIR_MASK           = 0x0F,                      ///< The mask used to extract track dirs
    58 	RVSB_ROAD_STOP_TRACKDIR_MASK = 0x09                       ///< Only bits 0 and 3 are used to encode the trackdir for road stops
    62 	RVSB_ROAD_STOP_TRACKDIR_MASK = 0x09                       ///< Only bits 0 and 3 are used to encode the trackdir for road stops
    59 };
    63 };
    60 
    64