Script Classes for Adventure Games/List Class: Difference between revisions
No edit summary |
|||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
[[Category:SCI Pages]] | |||
[[Official SCI Documentation]]<br /> | [[Official SCI Documentation]]<br /> | ||
[[Script Classes for Adventure Games | Table of Contents]] | [[Script Classes for Adventure Games | Table of Contents]] | ||
<div align="center"> | <div align="center"> | ||
Chapter: | Chapter: | ||
| Line 33: | Line 33: | ||
[[Script Classes for Adventure Games/Global Variables|27]] | | [[Script Classes for Adventure Games/Global Variables|27]] | | ||
[[Script Classes for Adventure Games/Index|Index]] | [[Script Classes for Adventure Games/Index|Index]] | ||
</div> | </div> | ||
<div align="center"><span style="font-size: 22pt">The List Class</span><br />''Author: [[Jeff Stephenson]]''<br />''1988-04-05''</div></div> | |||
<div align="center"><span style="font-size: 22pt">The List Class</span><br /> | |||
''Author: [[Jeff Stephenson]]''<br /> | |||
'' | |||
<br /> | |||
==<br /> The List Class == | ==<br /> The List Class == | ||
| Line 90: | Line 86: | ||
==<br /> References == | ==<br /> References == | ||
<references /> | <references /><!-- Do not edit this section. It is autopopulated by <ref></ref> tags --> | ||
==<br /> See | ==<br /> Also See == | ||
* [[:Category:SCI Documentation|SCI Documentation]] | |||
* [[:Category:Official SCI Documentation|Official SCI Documentation]] | |||
* [[:Category:SCI Scripting|SCI Scripting]] | |||
* [[:Category:SCI Classes|SCI]] | |||
* [[:Category:SCI List Class | The SCI List Class]] | |||
* [[SCI Specifications]] | * [[SCI Specifications]] | ||
| | ||
[[Official SCI Documentation]]<br /> | |||
[[Script Classes for Adventure Games | Table of Contents]] | [[Script Classes for Adventure Games | Table of Contents]] | ||
<span style="float: left">[[Script Classes for Adventure Games/Collection Class|< Previous: The Collection Class]]</span> | <span style="float: left">[[Script Classes for Adventure Games/Collection Class|< Previous: The Collection Class]]</span> | ||
<span style="float: right">[[Script Classes for Adventure Games/Set Class|Next: The Set Class >]]</span> | <span style="float: right">[[Script Classes for Adventure Games/Set Class|Next: The Set Class >]]</span> | ||
| | ||
[[Category:References]] | [[Category:References]] | ||
[[Category:SCI References]] | [[Category:SCI References]] | ||
[[Category:Historical Pages]] | |||
[[Category:SCI Historical Pages]] | |||
[[Category:Development]] | |||
[[Category:SCI Development]] | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:SCI Documentation]] | [[Category:SCI Documentation]] | ||
[[Category:Official Documentation]] | |||
[[Category:Official SCI Documentation]] | |||
[[Category:Scripting]] | [[Category:Scripting]] | ||
[[Category:SCI Scripting]] | [[Category:SCI Scripting]] | ||
[[Category:Classes]] | [[Category:Classes]] | ||
[[Category:SCI Classes]] | [[Category:SCI Classes]] | ||
[[Category:List Class]] | |||
[[Category:SCI List Class]] | |||
Latest revision as of 19:16, 5 January 2026
Official SCI Documentation
Table of Contents
Chapter:
1 |
2 |
3 |
4 |
5 |
6 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
Index
The List Class
A List is just a Collection which has a specified order to its elements.
| In file | system.sc |
| Inherits from | Collection |
| Inherited by | Inventory |
| Set |
Properties
Methods
add: element [element ...]
Adds elements to the end of the list in the order specified.
first
Returns the kNode of the first element in the List.
next: kNode
Returns the kNode of the element which follows kNode in the List, 0 if kNode is the end of the List.
at: n
Returns the element (not the kNode) at position n in the List.
last
Returns the kNode of the last element in the List.
prev: kNode
Returns the kNode of the element preceding kNode in the List, 0 if kNode is the first element of the List.
addToFront: element [element ...]
Add elements to the beginning of the List.
addToEnd: element [element ...]
Add elements to the end of the List.
indexOf: element
Return the index of element in the list. If the element is not in the list, return -1.
References
Also See
- SCI Documentation
- Official SCI Documentation
- SCI Scripting
- SCI
- The SCI List Class
- SCI Specifications