AIEventSubsidyOffer Class Reference

Event Subsidy Offered, indicating someone offered a subsidy. More...

Inheritance diagram for AIEventSubsidyOffer:

AIEvent AIObject

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

Event Subsidy Offered, indicating someone offered a subsidy.

Constructor & Destructor Documentation

AIEventSubsidyOffer::AIEventSubsidyOffer ( SubsidyID  subsidy_id  )  [inline]

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


Member Function Documentation

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

Convert an AIEvent to the real instance.

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

SubsidyID AIEventSubsidyOffer::GetSubsidyID (  )  [inline]

Get the SubsidyID of the subsidy.

Returns:
The subsidy id.


Generated on Wed Sep 15 14:11:49 2010 for OpenTTD NoAI API by  doxygen 1.5.6