Event Company Merger, indicating a company has been bought by another company. More...
#include <ai_event_types.hpp>
Public Member Functions | |
AIEventCompanyMerger (Owner old_owner, Owner new_owner) | |
AICompany::CompanyID | GetOldCompanyID () |
Get the CompanyID of the company that has been bought. | |
AICompany::CompanyID | GetNewCompanyID () |
Get the CompanyID of the new owner. | |
Static Public Member Functions | |
static const char * | GetClassName () |
Get the name of this class to identify it towards squirrel. | |
static AIEventCompanyMerger * | Convert (AIEvent *instance) |
Convert an AIEvent to the real instance. | |
Private Attributes | |
AICompany::CompanyID | old_owner |
AICompany::CompanyID | new_owner |
Event Company Merger, indicating a company has been bought by another company.
Definition at line 422 of file ai_event_types.hpp.
old_owner | The company bought off. | |
new_owner | The company that bougth owner. |
Definition at line 431 of file ai_event_types.hpp.
static AIEventCompanyMerger* AIEventCompanyMerger::Convert | ( | AIEvent * | instance | ) | [inline, static] |
Convert an AIEvent to the real instance.
instance | The instance to convert. |
Definition at line 442 of file ai_event_types.hpp.
static const char* AIEventCompanyMerger::GetClassName | ( | ) | [inline, static] |
Get the name of this class to identify it towards squirrel.
Reimplemented from AIEvent.
Definition at line 425 of file ai_event_types.hpp.
AICompany::CompanyID AIEventCompanyMerger::GetNewCompanyID | ( | ) | [inline] |
Get the CompanyID of the new owner.
Definition at line 457 of file ai_event_types.hpp.
AICompany::CompanyID AIEventCompanyMerger::GetOldCompanyID | ( | ) | [inline] |
Get the CompanyID of the company that has been bought.
Definition at line 451 of file ai_event_types.hpp.