Public Member Functions | |
VehicleOrderSaver (Vehicle *_v) | |
bool | SwitchToNextOrder (bool skip_first) |
Set the current vehicle order to the next order in the order list. | |
Private Attributes | |
Vehicle * | v |
Order | old_order |
TileIndex | old_dest_tile |
StationID | old_last_station_visited |
VehicleOrderID | index |
Definition at line 2587 of file train_cmd.cpp.
bool VehicleOrderSaver::SwitchToNextOrder | ( | bool | skip_first | ) | [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 2618 of file train_cmd.cpp.
References Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tcache, Tzero >::PoolItem< Tpool >::index, INVALID_VEH_ORDER_ID, ODTFB_SERVICE, ProcessConditionalOrder(), and UpdateOrderDest().