AIEventSubsidyExpired Class Reference

Event Subsidy Expired, indicating a route that was once subsidized no longer is. More...

Inheritance diagram for AIEventSubsidyExpired:

AIEvent

Public Member Functions

 AIEventSubsidyExpired (SubsidyID subsidy_id)
SubsidyID GetSubsidyID ()
 Get the SubsidyID of the subsidy.

Static Public Member Functions

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

Detailed Description

Event Subsidy Expired, indicating a route that was once subsidized no longer is.

Constructor & Destructor Documentation

AIEventSubsidyExpired::AIEventSubsidyExpired ( SubsidyID  subsidy_id  ) 

Parameters:
subsidy_id The index of this subsidy in the _subsidies array.


Member Function Documentation

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

Convert an AIEvent to the real instance.

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

SubsidyID AIEventSubsidyExpired::GetSubsidyID (  )  [inline]

Get the SubsidyID of the subsidy.

Returns:
The subsidy id.


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