Class that handles all event related functions. More...
#include <script_event.hpp>
Static Public Member Functions | |
static bool | IsEventWaiting () |
Check if there is an event waiting. | |
static ScriptEvent * | GetNextEvent () |
Get the next event. | |
static void | InsertEvent (ScriptEvent *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.
ai game
Definition at line 83 of file script_event.hpp.
void ScriptEventController::FreeEventPointer | ( | ) | [static] |
Free the event pointer.
-all
Definition at line 29 of file script_event.cpp.
References ScriptObject::GetEventPointer(), and ScriptEventData::stack.
ScriptEvent * ScriptEventController::GetNextEvent | ( | ) | [static] |
Get the next event.
Definition at line 52 of file script_event.cpp.
References CreateEventPointer(), ScriptObject::GetEventPointer(), and ScriptEventData::stack.
void ScriptEventController::InsertEvent | ( | ScriptEvent * | event | ) | [static] |
Insert an event to the queue for the company.
event | The event to insert. -all |
Definition at line 64 of file script_event.cpp.
References CreateEventPointer(), ScriptObject::GetEventPointer(), and ScriptEventData::stack.
bool ScriptEventController::IsEventWaiting | ( | ) | [static] |
Check if there is an event waiting.
Definition at line 44 of file script_event.cpp.
References CreateEventPointer(), ScriptObject::GetEventPointer(), and ScriptEventData::stack.