AIVehicleList_Station Class Reference
[Classes that create a list of items.]

Creates a list of vehicles that have orders to a given station. More...

#include <ai_vehiclelist.hpp>

Inheritance diagram for AIVehicleList_Station:
AIAbstractList AIObject SimpleCountedObject

Public Member Functions

 AIVehicleList_Station (StationID station_id)

Static Public Member Functions

static const char * GetClassName ()

Detailed Description

Creates a list of vehicles that have orders to a given station.

Definition at line 32 of file ai_vehiclelist.hpp.


Constructor & Destructor Documentation

AIVehicleList_Station::AIVehicleList_Station ( StationID  station_id  ) 
Parameters:
station_id The station to get the list of vehicles from, which have orders to it.
Precondition:
AIBaseStation::IsValidBaseStation(station_id)

Definition at line 28 of file ai_vehiclelist.cpp.

References AIAbstractList::AddItem(), Order::GetDestination(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tcache, Tzero >::PoolItem< Tpool >::index, Vehicle::IsPrimaryVehicle(), Order::IsType(), and AIBaseStation::IsValidBaseStation().


The documentation for this class was generated from the following files:

Generated on Sat Jul 17 18:43:54 2010 for OpenTTD by  doxygen 1.6.1