AIEventCompanyBankrupt Class Reference

Event Company Bankrupt, indicating a company has gone bankrupt. More...

#include <ai_event_types.hpp>

Inheritance diagram for AIEventCompanyBankrupt:
AIEvent AIObject SimpleCountedObject

Public Member Functions

 AIEventCompanyBankrupt (Owner owner)
AICompany::CompanyID GetCompanyID ()
 Get the CompanyID of the company that has gone bankrupt.

Static Public Member Functions

static const char * GetClassName ()
static AIEventCompanyBankruptConvert (AIEvent *instance)
 Convert an AIEvent to the real instance.

Private Attributes

AICompany::CompanyID owner

Detailed Description

Event Company Bankrupt, indicating a company has gone bankrupt.

Definition at line 457 of file ai_event_types.hpp.


Constructor & Destructor Documentation

AIEventCompanyBankrupt::AIEventCompanyBankrupt ( Owner  owner  )  [inline]
Parameters:
owner The company that has gone bankrupt.

Definition at line 464 of file ai_event_types.hpp.


Member Function Documentation

static AIEventCompanyBankrupt* AIEventCompanyBankrupt::Convert ( AIEvent instance  )  [inline, static]

Convert an AIEvent to the real instance.

Parameters:
instance The instance to convert.
Returns:
The converted instance.

Definition at line 474 of file ai_event_types.hpp.

AICompany::CompanyID AIEventCompanyBankrupt::GetCompanyID (  )  [inline]

Get the CompanyID of the company that has gone bankrupt.

Returns:
The CompanyID of the company that has gone bankrupt.

Definition at line 480 of file ai_event_types.hpp.


The documentation for this class was generated from the following file:

Generated on Sat Apr 17 23:25:18 2010 for OpenTTD by  doxygen 1.6.1