Difference between revisions of "Script Classes for Adventure Games/Set Class"
From SCI Wiki
Jump to navigationJump to searchLine 98: | Line 98: | ||
| | ||
− | <span style="float: left">[[Script Classes for Adventure Games/List Class|< Previous: List Class]]</span> | + | <span style="float: left">[[Script Classes for Adventure Games/List Class|< Previous: The List Class]]</span> |
− | <span style="float: right">[[Script Classes for Adventure Games/EventHandler Class|Next: EventHandler Class >]]</span> | + | <span style="float: right">[[Script Classes for Adventure Games/EventHandler Class|Next: The EventHandler Class >]]</span> |
| |
Revision as of 02:05, 7 December 2015
Chapter:
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
Index
The Set Class
A Set is a kind of List which does not contain duplicate elements: adding an object to a Set
which already contains the object does not change the Set.
In file: | system.sc |
Inherits from: | Collection |
Inherited by: | EventHandler |
Properties
Methods
add: element [element ...]Adds each element to the set only if it is not already a member of the set.
- Notes
< Previous: The List Class Next: The EventHandler Class >