AIEventSubsidyAwarded Class Reference

Event Subidy Awarded, indicating a subsidy is awarded to some company. More...

#include <ai_event_types.hpp>

Inheritance diagram for AIEventSubsidyAwarded:

AIEvent AIObject SimpleCountedObject

Public Member Functions

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

Static Public Member Functions

static const char * GetClassName ()
static AIEventSubsidyAwardedConvert (AIEvent *instance)
 Convert an AIEvent to the real instance.

Private Attributes

SubsidyID subsidy_id

Detailed Description

Event Subidy Awarded, indicating a subsidy is awarded to some company.

Definition at line 149 of file ai_event_types.hpp.


Constructor & Destructor Documentation

AIEventSubsidyAwarded::AIEventSubsidyAwarded ( SubsidyID  subsidy_id  )  [inline]

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

Definition at line 156 of file ai_event_types.hpp.


Member Function Documentation

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

Convert an AIEvent to the real instance.

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

Definition at line 166 of file ai_event_types.hpp.

SubsidyID AIEventSubsidyAwarded::GetSubsidyID (  )  [inline]

Get the SubsidyID of the subsidy.

Returns:
The subsidy id.

Definition at line 172 of file ai_event_types.hpp.


The documentation for this class was generated from the following file:

Generated on Tue Jan 5 21:03:17 2010 for OpenTTD by  doxygen 1.5.6