OpenTTD NoAI API
Public Member Functions | Static Public Member Functions

AIEventIndustryOpen Class Reference

Event Industry Open, indicating a new industry has been created. More...

Inheritance diagram for AIEventIndustryOpen:
AIEvent AIObject

Public Member Functions

 AIEventIndustryOpen (IndustryID industry_id)
IndustryID GetIndustryID ()
 Get the IndustryID of the new industry.

Static Public Member Functions

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

Detailed Description

Event Industry Open, indicating a new industry has been created.


Constructor & Destructor Documentation

AIEventIndustryOpen::AIEventIndustryOpen ( IndustryID  industry_id) [inline]
Parameters:
industry_idThe new industry.

Member Function Documentation

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

Convert an AIEvent to the real instance.

Parameters:
instanceThe instance to convert.
Returns:
The converted instance.
IndustryID AIEventIndustryOpen::GetIndustryID ( ) [inline]

Get the IndustryID of the new industry.

Returns:
The IndustryID of the industry.