27void DrawOrderString(
const Vehicle *v,
const Order *order,
int order_index,
int y,
bool selected,
bool timetable,
int left,
int middle,
int right);
29static const uint DEF_SERVINT_DAYS_TRAINS = 150;
30static const uint DEF_SERVINT_DAYS_ROADVEH = 150;
31static const uint DEF_SERVINT_DAYS_AIRCRAFT = 100;
32static const uint DEF_SERVINT_DAYS_SHIPS = 360;
33static const uint MIN_SERVINT_DAYS = 30;
34static const uint MAX_SERVINT_DAYS = 800;
36static const uint DEF_SERVINT_MINUTES_TRAINS = 5;
37static const uint DEF_SERVINT_MINUTES_ROADVEH = 5;
38static const uint DEF_SERVINT_MINUTES_AIRCRAFT = 3;
39static const uint DEF_SERVINT_MINUTES_SHIPS = 12;
40static const uint MIN_SERVINT_MINUTES = 1;
41static const uint MAX_SERVINT_MINUTES = 30;
43static const uint DEF_SERVINT_PERCENT = 50;
44static const uint MIN_SERVINT_PERCENT = 5;
45static const uint MAX_SERVINT_PERCENT = 90;
Types related to companies.
uint16_t GetServiceIntervalClamped(int interval, bool ispercent)
Clamp the service interval to the correct min/max.
bool ProcessOrders(Vehicle *v)
Handle the orders of a vehicle and determine the next place to go to if needed.
void DeleteVehicleOrders(Vehicle *v, bool keep_orderlist=false, bool reset_order_indices=true)
Delete all orders from a vehicle.
uint GetOrderDistance(const Order *prev, const Order *cur, const Vehicle *v, int conditional_depth=0)
Get the distance between two orders of a vehicle.
bool UpdateOrderDest(Vehicle *v, const Order *order, int conditional_depth=0, bool pbs_look_ahead=false)
Update the vehicle's destination tile from an order.
void InvalidateVehicleOrder(const Vehicle *v, int data)
Updates the widgets of a vehicle which contains the order-data.
void RemoveOrderFromAllVehicles(OrderType type, DestinationID destination, bool hangar=false)
Removes an order from all vehicles.
void DrawOrderString(const Vehicle *v, const Order *order, int order_index, int y, bool selected, bool timetable, int left, int middle, int right)
Draws an order in order or timetable GUI.
VehicleOrderID ProcessConditionalOrder(const Order *order, const Vehicle *v)
Process a conditional order and determine the next order.
void CheckOrders(const Vehicle *)
Check the orders of a vehicle, to see if there are invalid orders and stuff.
uint8_t VehicleOrderID
The index of an order within its current vehicle (not pool related)
Types related to vehicles.