Event Engine Preview, indicating a manufacturer offer you to test a new engine. More...
Public Member Functions | |
AIEventEnginePreview (EngineID engine) | |
char * | GetName () |
Get the name of the offered engine. | |
CargoID | GetCargoType () |
Get the cargo-type of the offered engine. | |
int32 | GetCapacity () |
Get the capacity of the offered engine. | |
int32 | GetMaxSpeed () |
Get the maximum speed of the offered engine. | |
Money | GetPrice () |
Get the new cost of the offered engine. | |
Money | GetRunningCost () |
Get the running cost of the offered engine. | |
AIVehicle::VehicleType | GetVehicleType () |
Get the type of the offered engine. | |
bool | AcceptPreview () |
Accept the engine preview. | |
Static Public Member Functions | |
static AIEventEnginePreview * | Convert (AIEvent *instance) |
Convert an AIEvent to the real instance. |
Event Engine Preview, indicating a manufacturer offer you to test a new engine.
You can get the same information about the offered engine as a real user would see in the offer window. And you can also accept the offer.
AIEventEnginePreview::AIEventEnginePreview | ( | EngineID | engine | ) | [inline] |
engine | The engine offered to test. |
bool AIEventEnginePreview::AcceptPreview | ( | ) |
Accept the engine preview.
static AIEventEnginePreview* AIEventEnginePreview::Convert | ( | AIEvent * | instance | ) | [inline, static] |
Convert an AIEvent to the real instance.
instance | The instance to convert. |
int32 AIEventEnginePreview::GetCapacity | ( | ) |
Get the capacity of the offered engine.
In case it can transport multiple cargos, it returns the first/main.
CargoID AIEventEnginePreview::GetCargoType | ( | ) |
Get the cargo-type of the offered engine.
In case it can transport multiple cargos, it returns the first/main.
int32 AIEventEnginePreview::GetMaxSpeed | ( | ) |
Get the maximum speed of the offered engine.
char* AIEventEnginePreview::GetName | ( | ) |
Get the name of the offered engine.
Money AIEventEnginePreview::GetPrice | ( | ) |
Get the new cost of the offered engine.
Money AIEventEnginePreview::GetRunningCost | ( | ) |
Get the running cost of the offered engine.
AIVehicle::VehicleType AIEventEnginePreview::GetVehicleType | ( | ) |
Get the type of the offered engine.