Public Member Functions | Static Public Member Functions | Private Attributes

ScriptEventVehicleUnprofitable Class Reference

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

#include <script_event_types.hpp>

Inheritance diagram for ScriptEventVehicleUnprofitable:
ScriptEvent ScriptObject SimpleCountedObject

Public Member Functions

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

Static Public Member Functions

static
ScriptEventVehicleUnprofitable
Convert (ScriptEvent *instance)
 Convert an ScriptEvent to the real instance.

Private Attributes

VehicleID vehicle_id
 The vehicle that is unprofitable.

Detailed Description

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

ai

Definition at line 546 of file script_event_types.hpp.


Constructor & Destructor Documentation

ScriptEventVehicleUnprofitable::ScriptEventVehicleUnprofitable ( VehicleID  vehicle_id  )  [inline]
Parameters:
vehicle_id The vehicle that was unprofitable.

Definition at line 551 of file script_event_types.hpp.


Member Function Documentation

static ScriptEventVehicleUnprofitable* ScriptEventVehicleUnprofitable::Convert ( ScriptEvent instance  )  [inline, static]

Convert an ScriptEvent to the real instance.

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

Definition at line 561 of file script_event_types.hpp.

VehicleID ScriptEventVehicleUnprofitable::GetVehicleID (  )  [inline]

Get the VehicleID of the vehicle that lost money.

Returns:
The VehicleID of the vehicle that lost money.

Definition at line 567 of file script_event_types.hpp.

References vehicle_id.


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