OpenTTD AI API 20260206-master-g4d4e37dbf1
AIEventController Class Reference

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

#include <script_event.hpp>

Inheritance diagram for AIEventController:

Static Public Member Functions

static bool IsEventWaiting ()
 Check if there is an event waiting.
static AIEventGetNextEvent ()
 Get the next event.

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 script instance-wide.

Member Function Documentation

◆ GetNextEvent()

AIEvent * AIEventController::GetNextEvent ( )
static

Get the next event.

Returns
a class of the event-child issues.

◆ IsEventWaiting()

bool AIEventController::IsEventWaiting ( )
static

Check if there is an event waiting.

Returns
true if there is an event on the stack.