OpenTTD
|
Types related to orders. More...
#include "core/enum_type.hpp"
Go to the source code of this file.
Data Structures | |
struct | EnumPropsT< ModifyOrderFlags > |
struct | EnumPropsT< ModifyTimetableFlags > |
Typedefs | |
typedef byte | VehicleOrderID |
The index of an order within its current vehicle (not pool related) | |
typedef uint16 | OrderID |
typedef uint16 | OrderListID |
typedef uint16 | DestinationID |
typedef SimpleTinyEnumT < OrderType, byte > | OrderTypeByte |
It needs to be 8bits, because we save and load it as such. |
Variables | |
static const VehicleOrderID | INVALID_VEH_ORDER_ID = 0xFF |
Invalid vehicle order index (sentinel) | |
static const VehicleOrderID | MAX_VEH_ORDER_ID = INVALID_VEH_ORDER_ID - 1 |
Last valid VehicleOrderID. | |
static const OrderID | INVALID_ORDER = 0xFFFF |
Invalid order (sentinel) | |
static const uint | IMPLICIT_ORDER_ONLY_CAP = 32 |
Maximum number of orders in implicit-only lists before we start searching harder for duplicates. |
Types related to orders.
Definition in file order_type.h.
enum CloneOptions |
Clone actions.
Definition at line 185 of file order_type.h.
enum ModifyOrderFlags |
Enumeration for the data to set in CmdModifyOrder.
Definition at line 148 of file order_type.h.
enum ModifyTimetableFlags |
Enumeration for the data to set in CmdChangeTimetable.
MTF_WAIT_TIME |
Set wait time. |
MTF_TRAVEL_TIME |
Set travel time. |
MTF_TRAVEL_SPEED |
Set max travel speed. |
Definition at line 175 of file order_type.h.
Comparator for the skip reasoning.
Definition at line 132 of file order_type.h.
Variables (of a vehicle) to 'cause' skipping on.
Definition at line 118 of file order_type.h.
enum OrderDepotAction |
Depot action to switch to when doing a MOF_DEPOT_ACTION.
DA_ALWAYS_GO |
Always go to the depot. |
DA_SERVICE |
Service only if needed. |
DA_STOP |
Go to the depot and stop there. |
Definition at line 165 of file order_type.h.
Actions that can be performed when the vehicle enters the depot.
ODATF_SERVICE_ONLY |
Only service the vehicle. |
ODATFB_HALT |
Service the vehicle and then halt it. |
ODATFB_NEAREST_DEPOT |
Send the vehicle to the nearest depot. |
Definition at line 108 of file order_type.h.
enum OrderDepotTypeFlags |
Reasons that could cause us to go to the depot.
ODTF_MANUAL |
Manually initiated order. |
ODTFB_SERVICE |
This depot order is because of the servicing limit. |
ODTFB_PART_OF_ORDERS |
This depot order is because of a regular order. |
Definition at line 99 of file order_type.h.
enum OrderLoadFlags |
Flags related to the loading order.
Definition at line 68 of file order_type.h.
enum OrderNonStopFlags |
Non-stop order flags.
Definition at line 78 of file order_type.h.
enum OrderStopLocation |
Where to stop the trains.
OSL_PLATFORM_NEAR_END |
Stop at the near end of the platform. |
OSL_PLATFORM_MIDDLE |
Stop at the middle of the platform. |
OSL_PLATFORM_FAR_END |
Stop at the far end of the platform. |
Definition at line 89 of file order_type.h.
enum OrderUnloadFlags |
Flags related to the unloading order.
Definition at line 58 of file order_type.h.
|
static |
Last valid VehicleOrderID.
Definition at line 25 of file order_type.h.
Referenced by Vehicle::BeginLoading(), and CmdInsertOrder().