Event Company Ask Merger, indicating a company can be bought (cheaply) by you. More...
#include <script_event_types.hpp>
Public Member Functions | |
ScriptEventCompanyAskMerger (Owner owner, int32 value) | |
ScriptCompany::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 ScriptEventCompanyAskMerger * | Convert (ScriptEvent *instance) |
Convert an ScriptEvent to the real instance. | |
Private Attributes | |
ScriptCompany::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.
ai
Definition at line 362 of file script_event_types.hpp.
ScriptEventCompanyAskMerger::ScriptEventCompanyAskMerger | ( | Owner | owner, | |
int32 | value | |||
) | [inline] |
owner | The company that can be bough. | |
value | The value/costs of buying the company. |
Definition at line 368 of file script_event_types.hpp.
bool ScriptEventCompanyAskMerger::AcceptMerger | ( | ) |
Take over the company for this merger.
Definition at line 118 of file script_event_types.cpp.
References CMD_BUY_COMPANY, ScriptObject::DoCommand(), and owner.
static ScriptEventCompanyAskMerger* ScriptEventCompanyAskMerger::Convert | ( | ScriptEvent * | instance | ) | [inline, static] |
Convert an ScriptEvent to the real instance.
instance | The instance to convert. |
Definition at line 379 of file script_event_types.hpp.
ScriptCompany::CompanyID ScriptEventCompanyAskMerger::GetCompanyID | ( | ) | [inline] |
Get the CompanyID of the company that can be bought.
Definition at line 386 of file script_event_types.hpp.
References owner.
int32 ScriptEventCompanyAskMerger::GetValue | ( | ) | [inline] |
Get the value of the new company.
Definition at line 392 of file script_event_types.hpp.
References value.