GSEventCompanyTown Class Reference

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

Inheritance diagram for GSEventCompanyTown:

GSEvent GSEventExclusiveTransportRights GSEventRoadReconstruction

Public Member Functions

 GSEventCompanyTown (GSEventType event, GSCompany::CompanyID company, TownID town)
GSCompany::CompanyID GetCompanyID ()
 Get the CompanyID of the company.
TownID GetTownID ()
 Get the TownID of the town.

Static Public Member Functions

static GSEventCompanyTownConvert (GSEvent *instance)
 Convert an GSEvent to the real instance.

Detailed Description

Base class for events involving a town and a company.

Constructor & Destructor Documentation

GSEventCompanyTown::GSEventCompanyTown ( GSEventType  event,
GSCompany::CompanyID  company,
TownID  town 
)

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


Member Function Documentation

static GSEventCompanyTown* GSEventCompanyTown::Convert ( GSEvent instance  )  [inline, static]

Convert an GSEvent to the real instance.

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

GSCompany::CompanyID GSEventCompanyTown::GetCompanyID (  )  [inline]

Get the CompanyID of the company.

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

TownID GSEventCompanyTown::GetTownID (  )  [inline]

Get the TownID of the town.

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


Generated on Tue Sep 23 19:17:51 2014 for OpenTTD Game API by  doxygen 1.5.6