OpenTTD NoAI API
Public Member Functions | Static Public Member Functions
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 AIObject

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 
) [inline]
Parameters:
stationThe station visited for the first time.
vehicleThe vehicle visiting the station.

Member Function Documentation

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

Convert an AIEvent to the real instance.

Parameters:
instanceThe 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.