AIEvent Class Reference

Class that handles all event related functions. More...

Inheritance diagram for AIEvent:

AIObject AIEventCompanyBankrupt AIEventCompanyInTrouble AIEventCompanyMerger AIEventCompanyNew AIEventDisasterZeppelinerCleared AIEventDisasterZeppelinerCrashed AIEventEngineAvailable AIEventEnginePreview AIEventIndustryClose AIEventIndustryOpen AIEventStationFirstVehicle AIEventSubsidyAwarded AIEventSubsidyExpired AIEventSubsidyOffer AIEventSubsidyOfferExpired AIEventVehicleCrashed AIEventVehicleLost AIEventVehicleUnprofitable AIEventVehicleWaitingInDepot

Public Types

enum  AIEventType {
  AI_ET_INVALID = 0,
  AI_ET_TEST,
  AI_ET_SUBSIDY_OFFER,
  AI_ET_SUBSIDY_OFFER_EXPIRED,
  AI_ET_SUBSIDY_AWARDED,
  AI_ET_SUBSIDY_EXPIRED,
  AI_ET_ENGINE_PREVIEW,
  AI_ET_COMPANY_NEW,
  AI_ET_COMPANY_IN_TROUBLE,
  AI_ET_COMPANY_MERGER,
  AI_ET_COMPANY_BANKRUPT,
  AI_ET_VEHICLE_CRASHED,
  AI_ET_VEHICLE_LOST,
  AI_ET_VEHICLE_WAITING_IN_DEPOT,
  AI_ET_VEHICLE_UNPROFITABLE,
  AI_ET_INDUSTRY_OPEN,
  AI_ET_INDUSTRY_CLOSE,
  AI_ET_ENGINE_AVAILABLE,
  AI_ET_STATION_FIRST_VEHICLE,
  AI_ET_DISASTER_ZEPPELINER_CRASHED,
  AI_ET_DISASTER_ZEPPELINER_CLEARED
}
 The type of event. More...

Public Member Functions

 AIEvent (AIEvent::AIEventType type)
 Constructor of AIEvent, to get the type of event.
AIEventType GetEventType ()
 Get the event-type.

Protected Attributes

AIEventType type
 The type of this event.

Detailed Description

Class that handles all event related functions.

You can lookup the type, and than convert it to the real event-class. That way you can request more detailed information about the event.


Member Enumeration Documentation

The type of event.

Needed to lookup the detailed class.


Member Function Documentation

AIEventType AIEvent::GetEventType (  )  [inline]

Get the event-type.

Returns:
The AIEventType.


Generated on Tue Sep 8 20:55:28 2009 for OpenTTD NoAI API by  doxygen 1.5.6