Creates a list of vehicles that have orders to a given station. More...
#include <script_vehiclelist.hpp>
Public Member Functions | |
ScriptVehicleList_Station (StationID station_id) |
Creates a list of vehicles that have orders to a given station.
ai
Definition at line 33 of file script_vehiclelist.hpp.
ScriptVehicleList_Station::ScriptVehicleList_Station | ( | StationID | station_id | ) |
station_id | The station to get the list of vehicles from, which have orders to it. |
Definition at line 29 of file script_vehiclelist.cpp.
References _current_company, ScriptList::AddItem(), FOR_ALL_VEHICLES, Order::GetDestination(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem< Tpool >::index, Vehicle::IsPrimaryVehicle(), Order::IsType(), ScriptBaseStation::IsValidBaseStation(), and Vehicle::owner.