Difference between revisions of "SCI Kernel Documentation/Object Functions"

From SCI Wiki
Jump to navigationJump to search
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
 
[[SCI Kernel Documentation/String Functions|6]] |  
 
[[SCI Kernel Documentation/String Functions|6]] |  
 
[[SCI Kernel Documentation/Picture Functions|7]] |  
 
[[SCI Kernel Documentation/Picture Functions|7]] |  
[[SCI Kernel Documentation/Save/Restore Game Functions|8]] |  
+
[[SCI Kernel Documentation/Save-Restore Game Functions|8]] |
 
[[SCI Kernel Documentation/Animation Functions|9]] |  
 
[[SCI Kernel Documentation/Animation Functions|9]] |  
 
[[SCI Kernel Documentation/Graphic Screen Functions|10]] |  
 
[[SCI Kernel Documentation/Graphic Screen Functions|10]] |  
Line 29: Line 29:
 
 
 
 
  
xxxxxxx body xxxxxxxx
+
==<br /> Object Functions ==
 +
 
 +
These functions are low-level functions for manipulating and getting information about objects.
 +
 
 +
===<br /> (Clone instance/class) ===
 +
 
 +
<blockquote>
 +
Return the object ID of a copy of instance/class.  This copy has the same property values and the same methods as instance/class.  The properties can be changed, the methods cannot.
 +
</blockquote>
 +
 
 +
===<br /> (DisposeClone object) ===
 +
 
 +
<blockquote>
 +
Dispose of object if it was created with the Clone function, leave it alone otherwise. This does not dispose of any objects which may have their IDs in a property of object -- you must do that before calling DisposeClone.
 +
</blockquote>
 +
 
 +
===<br /> (IsObject object) ===
 +
 
 +
<blockquote>
 +
Returns TRUE if object is an object or class, FALSE otherwise. Useful for testing to see that something is an object before sending a message to it in a situation in which you can't be guaranteed that a value is an object ID.
 +
</blockquote>
 +
 
 +
===<br /> (RespondsTo object selector) ===
 +
 
 +
<blockquote>
 +
Returns TRUE if selector is a valid selector for object, i.e. if selector is the name of a property or method of object.
 +
</blockquote>
  
 
&nbsp;
 
&nbsp;
Line 49: Line 75:
 
[[Category:Kernel Functions]]
 
[[Category:Kernel Functions]]
 
[[Category:Objects]]
 
[[Category:Objects]]
 +
[[Category:Object Functions]]

Latest revision as of 00:37, 3 December 2015

Official SCI Documentation

Chapter: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | Index


Object Functions

Author: Jeff Stephenson

Revision by: David Slayback

 


Object Functions

These functions are low-level functions for manipulating and getting information about objects.


(Clone instance/class)

Return the object ID of a copy of instance/class. This copy has the same property values and the same methods as instance/class. The properties can be changed, the methods cannot.


(DisposeClone object)

Dispose of object if it was created with the Clone function, leave it alone otherwise. This does not dispose of any objects which may have their IDs in a property of object -- you must do that before calling DisposeClone.


(IsObject object)

Returns TRUE if object is an object or class, FALSE otherwise. Useful for testing to see that something is an object before sending a message to it in a situation in which you can't be guaranteed that a value is an object ID.


(RespondsTo object selector)

Returns TRUE if selector is a valid selector for object, i.e. if selector is the name of a property or method of object.

 

Notes


 

Table of Contents

 

< Previous: List FunctionsNext: System Functions >