AIEventStationFirstVehicle Class Reference

Event Station First Vehicle, indicating a station has been visited by a vehicle for the first time. More...

Inheritance diagram for AIEventStationFirstVehicle:

AIEvent

Public Member Functions

 AIEventStationFirstVehicle (StationID station, VehicleID vehicle)
StationID GetStationID ()
 Get the StationID of the visited station.
VehicleID GetVehicleID ()
 Get the VehicleID of the first vehicle.

Static Public Member Functions

static AIEventStationFirstVehicleConvert (AIEvent *instance)
 Convert an AIEvent to the real instance.

Detailed Description

Event Station First Vehicle, indicating a station has been visited by a vehicle for the first time.

Constructor & Destructor Documentation

AIEventStationFirstVehicle::AIEventStationFirstVehicle ( StationID  station,
VehicleID  vehicle 
)

Parameters:
station The station visited for the first time.
vehicle The vehicle visiting the station.


Member Function Documentation

static AIEventStationFirstVehicle* AIEventStationFirstVehicle::Convert ( AIEvent instance  )  [inline, static]

Convert an AIEvent to the real instance.

Parameters:
instance The instance to convert.
Returns:
The converted instance.

StationID AIEventStationFirstVehicle::GetStationID (  )  [inline]

Get the StationID of the visited station.

Returns:
The StationID of the visited station.

VehicleID AIEventStationFirstVehicle::GetVehicleID (  )  [inline]

Get the VehicleID of the first vehicle.

Returns:
The VehicleID of the first vehicle.


Generated on Thu May 31 21:43:02 2012 for OpenTTD NoAI API by  doxygen 1.5.6