OpenTTD Source 20241224-master-gf74b0cf984
|
Types related to orders. More...
#include "core/enum_type.hpp"
Go to the source code of this file.
Typedefs | |
typedef uint8_t | VehicleOrderID |
The index of an order within its current vehicle (not pool related) | |
typedef uint32_t | OrderID |
typedef uint16_t | OrderListID |
typedef uint16_t | DestinationID |
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 = 0xFFFFFF |
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.
typedef uint16_t DestinationID |
Definition at line 18 of file order_type.h.
typedef uint32_t OrderID |
Definition at line 16 of file order_type.h.
typedef uint16_t OrderListID |
Definition at line 17 of file order_type.h.
typedef uint8_t VehicleOrderID |
The index of an order within its current vehicle (not pool related)
Definition at line 15 of file order_type.h.
enum CloneOptions : uint8_t |
Clone actions.
Definition at line 179 of file order_type.h.
enum ModifyOrderFlags : uint8_t |
Enumeration for the data to set in CmdModifyOrder.
Definition at line 144 of file order_type.h.
enum ModifyTimetableFlags : uint8_t |
Enumeration for the data to set in CmdChangeTimetable.
Enumerator | |
---|---|
MTF_WAIT_TIME | Set wait time. |
MTF_TRAVEL_TIME | Set travel time. |
MTF_TRAVEL_SPEED | Set max travel speed. |
Definition at line 171 of file order_type.h.
Comparator for the skip reasoning.
Definition at line 128 of file order_type.h.
Variables (of a vehicle) to 'cause' skipping on.
Definition at line 113 of file order_type.h.
enum OrderDepotAction |
Depot action to switch to when doing a MOF_DEPOT_ACTION.
Enumerator | |
---|---|
DA_ALWAYS_GO | Always go to the depot. |
DA_SERVICE | Service only if needed. |
DA_STOP | Go to the depot and stop there. |
DA_UNBUNCH | Go to the depot and unbunch. |
Definition at line 160 of file order_type.h.
Actions that can be performed when the vehicle enters the depot.
Definition at line 102 of file order_type.h.
enum OrderDepotTypeFlags |
Reasons that could cause us to go to the depot.
Enumerator | |
---|---|
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 93 of file order_type.h.
enum OrderLoadFlags |
Flags related to the loading order.
Definition at line 62 of file order_type.h.
enum OrderNonStopFlags |
Non-stop order flags.
Definition at line 72 of file order_type.h.
enum OrderStopLocation |
Where to stop the trains.
Enumerator | |
---|---|
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 83 of file order_type.h.
enum OrderType : uint8_t |
Order types.
It needs to be 8bits, because we save and load it as such
Definition at line 35 of file order_type.h.
enum OrderUnloadFlags |
Flags related to the unloading order.
Definition at line 52 of file order_type.h.
|
static |
Maximum number of orders in implicit-only lists before we start searching harder for duplicates.
Definition at line 32 of file order_type.h.
Referenced by Vehicle::BeginLoading().
|
static |
Invalid order (sentinel)
Definition at line 26 of file order_type.h.
Referenced by TimetableWindow::OnClick().
|
static |
Invalid vehicle order index (sentinel)
Definition at line 21 of file order_type.h.
Referenced by RefitWindow::BuildRefitList(), DeleteOrder(), TimetableWindow::DrawArrivalDeparturePanel(), OrdersWindow::DrawWidget(), RefitWindow::DrawWidget(), RefitWindow::GetCapacityString(), OrdersWindow::GetOrderFromPt(), InsertOrder(), OrdersWindow::OnClick(), RefitWindow::OnClick(), VehicleViewWindow::OnClick(), OrdersWindow::OnDragDrop(), RefitWindow::OnDragDrop(), OrdersWindow::OnInvalidateData(), TimetableWindow::OnInvalidateData(), OrdersWindow::OnMouseDrag(), RefitWindow::OnMouseDrag(), OrdersWindow::OnPlaceObjectAbort(), ProcessConditionalOrder(), RemoveOrderFromAllVehicles(), VehicleOrderSaver::SwitchToNextOrder(), and UpdateOrderDest().
|
static |
Last valid VehicleOrderID.
Definition at line 23 of file order_type.h.
Referenced by Vehicle::BeginLoading(), and CmdInsertOrder().