AIEventVehicleUnprofitable Class Reference

Event Vehicle Unprofitable, indicating a vehicle lost money last year. More...

Inheritance diagram for AIEventVehicleUnprofitable:

AIEvent

Public Member Functions

 AIEventVehicleUnprofitable (VehicleID vehicle_id)
VehicleID GetVehicleID ()
 Get the VehicleID of the vehicle that lost money.

Static Public Member Functions

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

Detailed Description

Event Vehicle Unprofitable, indicating a vehicle lost money last year.

Constructor & Destructor Documentation

AIEventVehicleUnprofitable::AIEventVehicleUnprofitable ( VehicleID  vehicle_id  ) 

Parameters:
vehicle_id The vehicle that was unprofitable.


Member Function Documentation

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

Convert an AIEvent to the real instance.

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

VehicleID AIEventVehicleUnprofitable::GetVehicleID (  )  [inline]

Get the VehicleID of the vehicle that lost money.

Returns:
The VehicleID of the vehicle that lost money.


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