Class that handles all event related functions. More...
#include <ai_event.hpp>
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_ASK_MERGER, 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, AI_ET_TOWN_FOUNDED } |
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. | |
Static Public Member Functions | |
static const char * | GetClassName () |
Get the name of this class to identify it towards squirrel. | |
Protected Attributes | |
AIEventType | type |
The type of this event. |
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.
Definition at line 22 of file ai_event.hpp.
enum AIEvent::AIEventType |
static const char* AIEvent::GetClassName | ( | ) | [inline, static] |
Get the name of this class to identify it towards squirrel.
Reimplemented in AIEventVehicleCrashed, AIEventSubsidyOffer, AIEventSubsidyOfferExpired, AIEventSubsidyAwarded, AIEventSubsidyExpired, AIEventEnginePreview, AIEventCompanyNew, AIEventCompanyInTrouble, AIEventCompanyAskMerger, AIEventCompanyMerger, AIEventCompanyBankrupt, AIEventVehicleLost, AIEventVehicleWaitingInDepot, AIEventVehicleUnprofitable, AIEventIndustryOpen, AIEventIndustryClose, AIEventEngineAvailable, AIEventStationFirstVehicle, AIEventDisasterZeppelinerCrashed, AIEventDisasterZeppelinerCleared, and AIEventTownFounded.
Definition at line 25 of file ai_event.hpp.
AIEventType AIEvent::GetEventType | ( | ) | [inline] |
Get the event-type.
AIEventType
. Definition at line 67 of file ai_event.hpp.
References type.