OpenTTD NoAI API
|
Event Company Ask Merger, indicating a company can be bought (cheaply) by you. More...
Public Member Functions | |
AIEventCompanyAskMerger (Owner owner, int32 value) | |
AICompany::CompanyID | GetCompanyID () |
Get the CompanyID of the company that can be bought. | |
int32 | GetValue () |
Get the value of the new company. | |
bool | AcceptMerger () |
Take over the company for this merger. | |
Static Public Member Functions | |
static AIEventCompanyAskMerger * | Convert (AIEvent *instance) |
Convert an AIEvent to the real instance. |
Event Company Ask Merger, indicating a company can be bought (cheaply) by you.
AIEventCompanyAskMerger::AIEventCompanyAskMerger | ( | Owner | owner, |
int32 | value | ||
) | [inline] |
owner | The company that can be bough. |
value | The value/costs of buying the company. |
bool AIEventCompanyAskMerger::AcceptMerger | ( | ) |
Take over the company for this merger.
static AIEventCompanyAskMerger* AIEventCompanyAskMerger::Convert | ( | AIEvent * | instance | ) | [inline, static] |
Convert an AIEvent to the real instance.
instance | The instance to convert. |
AICompany::CompanyID AIEventCompanyAskMerger::GetCompanyID | ( | ) | [inline] |
Get the CompanyID of the company that can be bought.
int32 AIEventCompanyAskMerger::GetValue | ( | ) | [inline] |
Get the value of the new company.