1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
|
allows Arg3 to be used as a mutable local variable.
ArrayCell ( array row column -- array )
Make a reference to a single cell of an array. The new reference is
treated as a reference to a 1x1 array, which aliases the original array.
Coordinates are zero-based.
Assassinate ( -- ) **
Destroy this object without sending any messages. The object is marked
as destroyed, but its variables are still accessible until the garbage
collector runs (during the trigger step for combatible objects, and
during the cleanup step for all objects). Assassination always succeeds,
so there is no result value to indicate success or not.
|
>
>
>
>
|
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
|
allows Arg3 to be used as a mutable local variable.
ArrayCell ( array row column -- array )
Make a reference to a single cell of an array. The new reference is
treated as a reference to a 1x1 array, which aliases the original array.
Coordinates are zero-based.
ArraySlice ( array start count -- array )
Make a slice of an array. The new reference aliases the original array.
Coordinates are zero-based.
Assassinate ( -- ) **
Destroy this object without sending any messages. The object is marked
as destroyed, but its variables are still accessible until the garbage
collector runs (during the trigger step for combatible objects, and
during the cleanup step for all objects). Assassination always succeeds,
so there is no result value to indicate success or not.
|
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
|
object is in the bizarro world and the other one isn't.
,Coloc ( obj1 obj2 -- bool )
True if the two specified objects are in the same place, or false
otherwise. Always false if the object is destroyed, or if one object
is in the bizarro world and the other one isn't.
Create ( class x y image dir -- obj ) **
Creates a new object at the specified location, and returns it. The
result is zero if the class is zero, the coordinates are out of range,
the object cannot be created due to the CollisionLayers, or if the new
object is destroyed before its CREATE message returns.
cz? ( any -- bool )
|
>
>
>
|
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
|
object is in the bizarro world and the other one isn't.
,Coloc ( obj1 obj2 -- bool )
True if the two specified objects are in the same place, or false
otherwise. Always false if the object is destroyed, or if one object
is in the bizarro world and the other one isn't.
CopyArray ( src dest -- ) **
Copy one array to another. It is OK if the two references overlap.
Create ( class x y image dir -- obj ) **
Creates a new object at the specified location, and returns it. The
result is zero if the class is zero, the coordinates are out of range,
the object cannot be created due to the CollisionLayers, or if the new
object is destroyed before its CREATE message returns.
cz? ( any -- bool )
|
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
|
Destroy this object. The variables can still be accessed after it is
destroyed until it is garbage collected. This calls the DESTROY message;
the return value will be the result of this instruction, and if it is
false then it is destroyed, and if true then the destruction fails.
,Destroy ( object -- value ) **
Destroy the specified object (as Destroy but for any object).
dup ( x -- x x )
eq ( in1 in2 -- bool )
Test if they are equal. Sounds cannot be compared, but you can compare
values of any other type. Strings compare as equal if they contain the
same text. Object references are only equal if they refer to the same
|
>
>
>
>
>
>
>
>
>
|
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
|
Destroy this object. The variables can still be accessed after it is
destroyed until it is garbage collected. This calls the DESTROY message;
the return value will be the result of this instruction, and if it is
false then it is destroyed, and if true then the destruction fails.
,Destroy ( object -- value ) **
Destroy the specified object (as Destroy but for any object).
DotProduct ( array array -- any )
Compute the dot product of two arrays. Any nonzero number times a class,
message, or object will shortcut and return that class, message, or
object; zero can multiply by any value of any type to make zero; a class
by an object will return that object if the class is correct; an object
by a message will send that message to that object, and add the return
value to the running total, or stop and return that value if the return
value isn't a number.
dup ( x -- x x )
eq ( in1 in2 -- bool )
Test if they are equal. Sounds cannot be compared, but you can compare
values of any other type. Strings compare as equal if they contain the
same text. Object references are only equal if they refer to the same
|