AIEventAircraftDestTooFar Class Reference

Event AircraftDestTooFar, indicating the next destination of an aircraft is too far away. More...

Inheritance diagram for AIEventAircraftDestTooFar:

AIEvent

Public Member Functions

 AIEventAircraftDestTooFar (VehicleID vehicle_id)
VehicleID GetVehicleID ()
 Get the VehicleID of the aircraft whose destination is too far away.

Static Public Member Functions

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

Detailed Description

Event AircraftDestTooFar, indicating the next destination of an aircraft is too far away.

This event can be trigger when the current oder of an aircraft changes, usually either when loading is done or when switch manually.


Constructor & Destructor Documentation

AIEventAircraftDestTooFar::AIEventAircraftDestTooFar ( VehicleID  vehicle_id  ) 

Parameters:
vehicle_id The aircraft whose destination is too far away.


Member Function Documentation

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

Convert an AIEvent to the real instance.

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

VehicleID AIEventAircraftDestTooFar::GetVehicleID (  )  [inline]

Get the VehicleID of the aircraft whose destination is too far away.

Returns:
The VehicleID of the aircraft whose destination is too far away.


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