OpenTTD NoAI API
Public Member Functions

AIList Class Reference

Creates an empty list, in which you can add integers. More...

Inheritance diagram for AIList:
AIAbstractList AIObject

Public Member Functions

void AddItem (int32 item, int32 value)
 Add an item to the list.
void ChangeItem (int32 item, int32 value)
 Change the value of an item in the list.
void RemoveItem (int32 item)
 Remove the item from the list.

Detailed Description

Creates an empty list, in which you can add integers.


Member Function Documentation

void AIList::AddItem ( int32  item,
int32  value 
)

Add an item to the list.

Parameters:
itemthe item to add.
valuethe value to assign.
void AIList::ChangeItem ( int32  item,
int32  value 
)

Change the value of an item in the list.

Parameters:
itemthe item to change
valuethe value to assign.
void AIList::RemoveItem ( int32  item)

Remove the item from the list.

Parameters:
itemthe item to remove.

Reimplemented from AIAbstractList.