OpenTTD NoAI API
|
Event Station First Vehicle, indicating a station has been visited by a vehicle for the first time. More...
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 AIEventStationFirstVehicle * | Convert (AIEvent *instance) |
Convert an AIEvent to the real instance. |
Event Station First Vehicle, indicating a station has been visited by a vehicle for the first time.
AIEventStationFirstVehicle::AIEventStationFirstVehicle | ( | StationID | station, |
VehicleID | vehicle | ||
) | [inline] |
station | The station visited for the first time. |
vehicle | The vehicle visiting the station. |
static AIEventStationFirstVehicle* AIEventStationFirstVehicle::Convert | ( | AIEvent * | instance | ) | [inline, static] |
Convert an AIEvent to the real instance.
instance | The instance to convert. |
StationID AIEventStationFirstVehicle::GetStationID | ( | ) | [inline] |
Get the StationID of the visited station.
VehicleID AIEventStationFirstVehicle::GetVehicleID | ( | ) | [inline] |
Get the VehicleID of the first vehicle.