|
enum | ErrorMessages {
ERR_ORDER_BASE,
ERR_ORDER_TOO_MANY,
ERR_ORDER_TOO_FAR_AWAY_FROM_PREVIOUS_DESTINATION,
ERR_ORDER_AIRCRAFT_NOT_ENOUGH_RANGE
} |
| All order related error messages. More...
|
|
enum | GSOrderFlags {
OF_NONE,
OF_NON_STOP_INTERMEDIATE,
OF_NON_STOP_DESTINATION,
OF_UNLOAD,
OF_TRANSFER,
OF_NO_UNLOAD,
OF_FULL_LOAD,
OF_FULL_LOAD_ANY,
OF_NO_LOAD,
OF_SERVICE_IF_NEEDED,
OF_STOP_IN_DEPOT,
OF_GOTO_NEAREST_DEPOT,
OF_NON_STOP_FLAGS,
OF_UNLOAD_FLAGS,
OF_LOAD_FLAGS,
OF_DEPOT_FLAGS,
OF_INVALID
} |
| Flags that can be used to modify the behaviour of orders. More...
|
|
enum | OrderCondition {
OC_LOAD_PERCENTAGE,
OC_RELIABILITY,
OC_MAX_RELIABILITY,
OC_MAX_SPEED,
OC_AGE,
OC_REQUIRES_SERVICE,
OC_UNCONDITIONALLY,
OC_REMAINING_LIFETIME,
OC_INVALID
} |
| All conditions a conditional order can depend on. More...
|
|
enum | CompareFunction {
CF_EQUALS,
CF_NOT_EQUALS,
CF_LESS_THAN,
CF_LESS_EQUALS,
CF_MORE_THAN,
CF_MORE_EQUALS,
CF_IS_TRUE,
CF_IS_FALSE,
CF_INVALID
} |
| Comparators for conditional orders. More...
|
|
enum | OrderPosition {
ORDER_CURRENT,
ORDER_INVALID
} |
| Index in the list of orders for a vehicle. More...
|
|
enum | StopLocation {
STOPLOCATION_NEAR,
STOPLOCATION_MIDDLE,
STOPLOCATION_FAR,
STOPLOCATION_INVALID
} |
| Where to stop trains in a station that's longer than the train. More...
|
|
|
static bool | IsValidVehicleOrder (VehicleID vehicle_id, OrderPosition order_position) |
| Checks whether the given order id is valid for the given vehicle. More...
|
|
static bool | IsGotoStationOrder (VehicleID vehicle_id, OrderPosition order_position) |
| Checks whether the given order is a goto-station order. More...
|
|
static bool | IsGotoDepotOrder (VehicleID vehicle_id, OrderPosition order_position) |
| Checks whether the given order is a goto-depot order. More...
|
|
static bool | IsGotoWaypointOrder (VehicleID vehicle_id, OrderPosition order_position) |
| Checks whether the given order is a goto-waypoint order. More...
|
|
static bool | IsConditionalOrder (VehicleID vehicle_id, OrderPosition order_position) |
| Checks whether the given order is a conditional order. More...
|
|
static bool | IsVoidOrder (VehicleID vehicle_id, OrderPosition order_position) |
| Checks whether the given order is a void order. More...
|
|
static bool | IsRefitOrder (VehicleID vehicle_id, OrderPosition order_position) |
| Checks whether the given order has a valid refit cargo. More...
|
|
static bool | IsCurrentOrderPartOfOrderList (VehicleID vehicle_id) |
| Checks whether the current order is part of the orderlist. More...
|
|
static OrderPosition | ResolveOrderPosition (VehicleID vehicle_id, OrderPosition order_position) |
| Resolves the given order index to the correct index for the given vehicle. More...
|
|
static bool | AreOrderFlagsValid (TileIndex destination, GSOrderFlags order_flags) |
| Checks whether the given order flags are valid for the given destination. More...
|
|
static bool | IsValidConditionalOrder (OrderCondition condition, CompareFunction compare) |
| Checks whether the given combination of condition and compare function is valid. More...
|
|
static int32 | GetOrderCount (VehicleID vehicle_id) |
| Returns the number of orders for the given vehicle. More...
|
|
static TileIndex | GetOrderDestination (VehicleID vehicle_id, OrderPosition order_position) |
| Gets the destination of the given order for the given vehicle. More...
|
|
static GSOrderFlags | GetOrderFlags (VehicleID vehicle_id, OrderPosition order_position) |
| Gets the GSOrderFlags of the given order for the given vehicle. More...
|
|
static OrderPosition | GetOrderJumpTo (VehicleID vehicle_id, OrderPosition order_position) |
| Gets the OrderPosition to jump to if the check succeeds of the given order for the given vehicle. More...
|
|
static OrderCondition | GetOrderCondition (VehicleID vehicle_id, OrderPosition order_position) |
| Gets the OrderCondition of the given order for the given vehicle. More...
|
|
static CompareFunction | GetOrderCompareFunction (VehicleID vehicle_id, OrderPosition order_position) |
| Gets the CompareFunction of the given order for the given vehicle. More...
|
|
static int32 | GetOrderCompareValue (VehicleID vehicle_id, OrderPosition order_position) |
| Gets the value to compare against of the given order for the given vehicle. More...
|
|
static StopLocation | GetStopLocation (VehicleID vehicle_id, OrderPosition order_position) |
| Gets the stoplocation of the given order for the given train. More...
|
|
static CargoID | GetOrderRefit (VehicleID vehicle_id, OrderPosition order_position) |
| Gets the refit cargo type of the given order for the given vehicle. More...
|
|
static uint | GetOrderDistance (GSVehicle::VehicleType vehicle_type, TileIndex origin_tile, TileIndex dest_tile) |
| Get the distance between two points for a vehicle type. More...
|
|
Class that handles all order related functions.