Event Company Merger, indicating a company has been bought by another company. More...
#include <script_event_types.hpp>
Public Member Functions | |
ScriptEventCompanyMerger (Owner old_owner, Owner new_owner) | |
ScriptCompany::CompanyID | GetOldCompanyID () |
Get the CompanyID of the company that has been bought. | |
ScriptCompany::CompanyID | GetNewCompanyID () |
Get the CompanyID of the new owner. | |
Static Public Member Functions | |
static ScriptEventCompanyMerger * | Convert (ScriptEvent *instance) |
Convert an ScriptEvent to the real instance. | |
Private Attributes | |
ScriptCompany::CompanyID | old_owner |
The company that ended to exist. | |
ScriptCompany::CompanyID | new_owner |
The company that's the end result of the merger. |
Event Company Merger, indicating a company has been bought by another company.
ai game
Definition at line 411 of file script_event_types.hpp.
old_owner | The company bought off. | |
new_owner | The company that bougth owner. |
Definition at line 417 of file script_event_types.hpp.
static ScriptEventCompanyMerger* ScriptEventCompanyMerger::Convert | ( | ScriptEvent * | instance | ) | [inline, static] |
Convert an ScriptEvent to the real instance.
instance | The instance to convert. |
Definition at line 428 of file script_event_types.hpp.
ScriptCompany::CompanyID ScriptEventCompanyMerger::GetNewCompanyID | ( | ) | [inline] |
Get the CompanyID of the new owner.
Definition at line 443 of file script_event_types.hpp.
References new_owner.
ScriptCompany::CompanyID ScriptEventCompanyMerger::GetOldCompanyID | ( | ) | [inline] |
Get the CompanyID of the company that has been bought.
Definition at line 437 of file script_event_types.hpp.
References old_owner.