Event Company Ask Merger, indicating a company can be bought (cheaply) by you. More...
#include <ai_event_types.hpp>
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 const char * | GetClassName () |
Get the name of this class to identify it towards squirrel. | |
static AIEventCompanyAskMerger * | Convert (AIEvent *instance) |
Convert an AIEvent to the real instance. | |
Private Attributes | |
AICompany::CompanyID | owner |
The company that is in trouble. | |
int32 | value |
The value of the company, i.e. the amount you would pay. |
Event Company Ask Merger, indicating a company can be bought (cheaply) by you.
Definition at line 377 of file ai_event_types.hpp.
AIEventCompanyAskMerger::AIEventCompanyAskMerger | ( | Owner | owner, | |
int32 | value | |||
) | [inline] |
owner | The company that can be bough. | |
value | The value/costs of buying the company. |
Definition at line 386 of file ai_event_types.hpp.
bool AIEventCompanyAskMerger::AcceptMerger | ( | ) |
Take over the company for this merger.
Definition at line 118 of file ai_event_types.cpp.
References CMD_BUY_COMPANY, AIObject::DoCommand(), and owner.
static AIEventCompanyAskMerger* AIEventCompanyAskMerger::Convert | ( | AIEvent * | instance | ) | [inline, static] |
Convert an AIEvent to the real instance.
instance | The instance to convert. |
Definition at line 397 of file ai_event_types.hpp.
static const char* AIEventCompanyAskMerger::GetClassName | ( | ) | [inline, static] |
Get the name of this class to identify it towards squirrel.
Reimplemented from AIEvent.
Definition at line 380 of file ai_event_types.hpp.
AICompany::CompanyID AIEventCompanyAskMerger::GetCompanyID | ( | ) | [inline] |
Get the CompanyID of the company that can be bought.
Definition at line 404 of file ai_event_types.hpp.
References owner.
int32 AIEventCompanyAskMerger::GetValue | ( | ) | [inline] |
Get the value of the new company.
Definition at line 410 of file ai_event_types.hpp.
References value.