|
OpenTTD Source
1.10.0-RC1
|
This class will save the current order of a vehicle and restore it on destruction. More...
Public Member Functions | |
| VehicleOrderSaver (Train *_v) | |
| bool | SwitchToNextOrder (bool skip_first) |
| Set the current vehicle order to the next order in the order list. More... | |
Private Attributes | |
| Train * | v |
| Order | old_order |
| TileIndex | old_dest_tile |
| StationID | old_last_station_visited |
| VehicleOrderID | index |
| bool | suppress_implicit_orders |
This class will save the current order of a vehicle and restore it on destruction.
Definition at line 2424 of file train_cmd.cpp.
|
inline |
Set the current vehicle order to the next order in the order list.
| skip_first | Shall the first (i.e. active) order be skipped? |
Definition at line 2457 of file train_cmd.cpp.
References Vehicle::GetNumOrders(), Vehicle::GetOrder(), and Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_vehicle_pool >::index.