Class that handles all event related functions. More...
#include <ai_event.hpp>
Static Public Member Functions | |
static const char * | GetClassName () |
The name of the class, needed by several sub-processes. | |
static bool | IsEventWaiting () |
Check if there is an event waiting. | |
static AIEvent * | GetNextEvent () |
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. | |
Static Private Member Functions | |
static void | CreateEventPointer () |
Create the event pointer. |
Class that handles all event related functions.
Definition at line 81 of file ai_event.hpp.
void AIEventController::FreeEventPointer | ( | ) | [static] |
Free the event pointer.
Definition at line 29 of file ai_event.cpp.
References AIObject::GetEventPointer(), and AIEventData::stack.
static const char* AIEventController::GetClassName | ( | ) | [inline, static] |
The name of the class, needed by several sub-processes.
Get the name of this class to identify it towards squirrel.
Definition at line 87 of file ai_event.hpp.
AIEvent * AIEventController::GetNextEvent | ( | ) | [static] |
Get the next event.
Definition at line 52 of file ai_event.cpp.
References CreateEventPointer(), AIObject::GetEventPointer(), and AIEventData::stack.
void AIEventController::InsertEvent | ( | AIEvent * | event | ) | [static] |
Insert an event to the queue for the company.
event | The event to insert. |
Definition at line 64 of file ai_event.cpp.
References CreateEventPointer(), AIObject::GetEventPointer(), and AIEventData::stack.
Referenced by AI::NewEvent().
bool AIEventController::IsEventWaiting | ( | ) | [static] |
Check if there is an event waiting.
Definition at line 44 of file ai_event.cpp.
References CreateEventPointer(), AIObject::GetEventPointer(), and AIEventData::stack.