Creates a list of stations which the vehicle has in its orders. More...
#include <ai_stationlist.hpp>
Public Member Functions | |
AIStationList_Vehicle (VehicleID vehicle_id) | |
Static Public Member Functions | |
static const char * | GetClassName () |
Get the name of this class to identify it towards squirrel. |
Creates a list of stations which the vehicle has in its orders.
Definition at line 37 of file ai_stationlist.hpp.
AIStationList_Vehicle::AIStationList_Vehicle | ( | VehicleID | vehicle_id | ) |
vehicle_id | The vehicle to get the list of stations he has in its orders from. |
Definition at line 26 of file ai_stationlist.cpp.
References AIList::AddItem(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tcache, Tzero >::PoolItem<&_vehicle_pool >::Get(), Vehicle::GetFirstOrder(), AIVehicle::IsValidVehicle(), and Order::next.
static const char* AIStationList_Vehicle::GetClassName | ( | ) | [inline, static] |
Get the name of this class to identify it towards squirrel.
Reimplemented from AIList.
Definition at line 40 of file ai_stationlist.hpp.