AIEventController Class Reference

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

Inheritance diagram for AIEventController:

AIObject

Static Public Member Functions

static bool IsEventWaiting ()
 Check if there is an event waiting.
static AIEventGetNextEvent ()
 Get the next event.
static void InsertEvent (AIEvent *event)
 Insert an event to the queue for the company.
static void FreeEventPointer ()
 Free the event pointer.

Detailed Description

Class that handles all event related functions.

Note:
it is not needed to create an instance of AIEvent to access it, as all members are static, and all data is stored AI-wide.

Member Function Documentation

static bool AIEventController::IsEventWaiting (  )  [static]

Check if there is an event waiting.

Returns:
true if there is an event on the stack.

static AIEvent* AIEventController::GetNextEvent (  )  [static]

Get the next event.

Returns:
a class of the event-child issues.

static void AIEventController::InsertEvent ( AIEvent event  )  [static]

Insert an event to the queue for the company.

Parameters:
event The event to insert.
Note:
DO NOT CALL YOURSELF; leave it to the internal AI programming.

static void AIEventController::FreeEventPointer (  )  [static]

Free the event pointer.

Note:
DO NOT CALL YOURSELF; leave it to the internal AI programming.


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