AIEventCompanyTown Class Reference

Base class for events involving a town and a company. More...

Inheritance diagram for AIEventCompanyTown:

AIEvent AIEventExclusiveTransportRights AIEventRoadReconstruction

Public Member Functions

 AIEventCompanyTown (AIEventType event, AICompany::CompanyID company, TownID town)
AICompany::CompanyID GetCompanyID ()
 Get the CompanyID of the company.
TownID GetTownID ()
 Get the TownID of the town.

Static Public Member Functions

static AIEventCompanyTownConvert (AIEvent *instance)
 Convert an AIEvent to the real instance.

Detailed Description

Base class for events involving a town and a company.

Constructor & Destructor Documentation

AIEventCompanyTown::AIEventCompanyTown ( AIEventType  event,
AICompany::CompanyID  company,
TownID  town 
)

Parameters:
event The eventtype.
company The company.
town The town.


Member Function Documentation

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

Convert an AIEvent to the real instance.

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

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

Get the CompanyID of the company.

Returns:
The CompanyID of the company involved into the event.

TownID AIEventCompanyTown::GetTownID (  )  [inline]

Get the TownID of the town.

Returns:
The TownID of the town involved into the event.


Generated on Thu Jun 30 21:53:52 2016 for OpenTTD NoAI API by  doxygen 1.5.6