OpenTTD NoAI API
Public Member Functions | Static Public Member Functions
AIEventTownFounded Class Reference

Event Town Founded, indicating a new town has been created. More...

Inheritance diagram for AIEventTownFounded:
AIEvent AIObject

Public Member Functions

 AIEventTownFounded (TownID town)
TownID GetTownID ()
 Get the TownID of the town.

Static Public Member Functions

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

Detailed Description

Event Town Founded, indicating a new town has been created.


Constructor & Destructor Documentation

AIEventTownFounded::AIEventTownFounded ( TownID  town) [inline]
Parameters:
townThe town that was created.

Member Function Documentation

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

Convert an AIEvent to the real instance.

Parameters:
instanceThe instance to convert.
Returns:
The converted instance.
TownID AIEventTownFounded::GetTownID ( ) [inline]

Get the TownID of the town.

Returns:
The TownID of the town that was created.