List (of Collect)

class List

Defined in Obj.sc.

The List class is an extension of the Collect class. It is used to handle a list of elements such as objects that can be accessed by index.

Subclasses: Dialog, Controls, Set, Conversation, _EditablePolygon, PolyEdit, DialogEditor.

Properties

Inherited from Collect:

Property Description
elements  
size  

Methods

showStr(buffer)
at(theIndex)

Returns a pointer to the node at the specified index.

last()

Returns a pointer to the last node in the collection.

prev(node)

Returns a pointer to the node before the specified one in the collection.

addToFront([nodes ...])

Adds the specified nodes to the front of the element list. It returns a pointer to the itself.

addToEnd([nodes ...])

Adds the specified nodes to the end of the element list. It returns a pointer to the itself.

addAfter(node [nodes ...])

Adds the specified nodes to the element list after node. It returns a pointer to itself.

indexOf(node)

Returns the index of pNode in the list of elements.