AIEventVehicleUnprofitable Class Reference

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

#include <ai_event_types.hpp>

Inheritance diagram for AIEventVehicleUnprofitable:

AIEvent AIObject SimpleCountedObject

Public Member Functions

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

Static Public Member Functions

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

Private Attributes

VehicleID vehicle_id

Detailed Description

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

Definition at line 497 of file ai_event_types.hpp.


Constructor & Destructor Documentation

AIEventVehicleUnprofitable::AIEventVehicleUnprofitable ( VehicleID  vehicle_id  )  [inline]

Parameters:
vehicle_id The vehicle that was unprofitable.

Definition at line 504 of file ai_event_types.hpp.


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.

Definition at line 514 of file ai_event_types.hpp.

VehicleID AIEventVehicleUnprofitable::GetVehicleID (  )  [inline]

Get the VehicleID of the vehicle that lost money.

Returns:
The VehicleID of the vehicle that lost money.

Definition at line 520 of file ai_event_types.hpp.


The documentation for this class was generated from the following file:

Generated on Fri Jul 31 22:33:35 2009 for OpenTTD by  doxygen 1.5.6