OpenTTD Source 20261129-master-g72a8bdc861
order_base.h File Reference

Base class for orders. More...

#include "order_type.h"
#include "core/pool_type.hpp"
#include "core/bitmath_func.hpp"
#include "cargo_type.h"
#include "station_type.h"
#include "vehicle_type.h"
#include "timer/timer_game_tick.h"
#include "saveload/saveload_type.h"

Go to the source code of this file.

Data Structures

struct  Order
 If you change this, keep in mind that it is also saved in 2 other places: More...
struct  OrderList
 Shared order list linking together the linked list of orders and the list of vehicles sharing this order list. More...

Typedefs

using OrderListPool = Pool<OrderList, OrderListID, 128>

Functions

void InsertOrder (Vehicle *v, Order &&new_o, VehicleOrderID sel_ord)
 Insert a new order but skip the validation.
void DeleteOrder (Vehicle *v, VehicleOrderID sel_ord)
 Delete an order but skip the parameter validation.

Variables

OrderListPool _orderlist_pool

Detailed Description

Base class for orders.

Definition in file order_base.h.

Typedef Documentation

◆ OrderListPool

using OrderListPool = Pool<OrderList, OrderListID, 128>

Definition at line 22 of file order_base.h.

Function Documentation

◆ DeleteOrder()

◆ InsertOrder()