AIEventSubsidyExpired Class Reference

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

#include <ai_event_types.hpp>

Inheritance diagram for AIEventSubsidyExpired:

AIEvent AIObject SimpleCountedObject

Public Member Functions

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

Static Public Member Functions

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

Private Attributes

SubsidyID subsidy_id

Detailed Description

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

Definition at line 176 of file ai_event_types.hpp.


Constructor & Destructor Documentation

AIEventSubsidyExpired::AIEventSubsidyExpired ( SubsidyID  subsidy_id  )  [inline]

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

Definition at line 183 of file ai_event_types.hpp.


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.

Definition at line 193 of file ai_event_types.hpp.

SubsidyID AIEventSubsidyExpired::GetSubsidyID (  )  [inline]

Get the SubsidyID of the subsidy.

Returns:
The subsidy id.

Definition at line 199 of file ai_event_types.hpp.


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

Generated on Mon May 11 15:48:24 2009 for OpenTTD by  doxygen 1.5.6