Creates an empty list, in which you can add integers. More...
#include <ai_list.hpp>
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. | |
| SQInteger | _set (HSQUIRRELVM vm) |
| Used for [] set from Squirrel. | |
Static Public Member Functions | |
| static const char * | GetClassName () |
Creates an empty list, in which you can add integers.
Definition at line 21 of file ai_list.hpp.
| void AIList::AddItem | ( | int32 | item, | |
| int32 | value | |||
| ) |
Add an item to the list.
| item | the item to add. | |
| value | the value to assign. |
Definition at line 14 of file ai_list.cpp.
References AIAbstractList::SetValue().
Referenced by _set().
| void AIList::ChangeItem | ( | int32 | item, | |
| int32 | value | |||
| ) |
Change the value of an item in the list.
| item | the item to change | |
| value | the value to assign. |
Definition at line 20 of file ai_list.cpp.
References AIAbstractList::SetValue().
Referenced by _set().
| void AIList::RemoveItem | ( | int32 | item | ) |
Remove the item from the list.
| item | the item to remove. |
Reimplemented from AIAbstractList.
Definition at line 25 of file ai_list.cpp.
Referenced by _set().
1.6.1