OpenTTD AI API: AIEventController Class Reference

OpenTTD AI API 12.2

Static Public Member Functions
AIEventController Class Reference

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

Inheritance diagram for AIEventController:

## Static Public Member Functions
static bool | IsEventWaiting ()
| Check if there is an event waiting. More...
static AIEvent * | GetNextEvent ()
| Get the next event. More...

## 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()

static AIEvent* AIEventController::GetNextEvent | ( |  | ) |
| static

Get the next event.

Returns
  a class of the event-child issues.

## ◆ IsEventWaiting()

static bool AIEventController::IsEventWaiting | ( |  | ) |
| static

Check if there is an event waiting.

Returns
  true if there is an event on the stack.