Public Member Functions | Static Public Member Functions

AIEventVehicleUnprofitable Class Reference

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

Inheritance diagram for AIEventVehicleUnprofitable:
AIEvent AIObject

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 ) [inline]
Parameters:
vehicle_idThe vehicle that was unprofitable.

Member Function Documentation

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

Convert an AIEvent to the real instance.

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