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

From SCI Wiki
Jump to navigationJump to search
(Created page with "Official SCI Documentation<br /> <div align="center"> Chapter: 1 | 2 | SCI...")
 
 
(8 intermediate revisions 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 23: Line 23:
 
</div><br />
 
</div><br />
  
<div align="center"><span style="font-size: 22pt"></span><br />
+
<div align="center"><span style="font-size: 22pt">System Functions</span><br />
 
''Author: [[Jeff Stephenson]]''<br />
 
''Author: [[Jeff Stephenson]]''<br />
 
''Revision by: David Slayback''</div>
 
''Revision by: David Slayback''</div>
Line 29: Line 29:
 
&nbsp;
 
&nbsp;
  
xxxxxxx body xxxxxxxx
+
==<br /> System Functions ==
 +
 
 +
===<br /> (Wait n) ===
 +
 
 +
<blockquote>
 +
Wait until n timer ticks (1/60th of a second) have passed since the last call to Wait. This is used to keep animation running at a constant speed -- each pass through the main loop ends with a call to Wait, so the main loop is executed at most once in a given time interval. The standard value of n is 6, leading to animation every 1/10th of a second. If more than n ticks have occurred since the last call to Wait, it returns immediately. The return value of Wait is the number of ticks more than n since the last call.
 +
</blockquote>
 +
 
 +
===<br /> (GetTime [realTime]) ===
 +
 
 +
<blockquote>
 +
With no arguments, returns the low word of the number of ticks (1/60th of a second) since the game was booted. With an argument, returns real system time in the format:
 +
<blockquote>HHHH/MMMMMM/SSSSSS</blockquote>
 +
</blockquote>
  
 
&nbsp;
 
&nbsp;
Line 42: Line 55:
 
&nbsp;
 
&nbsp;
  
<span style="float: left">[[SCI Kernel Documentation/|&lt; Previous: ]]</span><span style="float: right">[[SCI Kernel Documentation/|Next: &gt;]]</span>
+
<span style="float: left">[[SCI Kernel Documentation/Object Functions|&lt; Previous: Object Functions]]</span>
 +
<span style="float: right">[[SCI Kernel Documentation/String Functions|Next: String Functions &gt;]]</span>
  
 
&nbsp;
 
&nbsp;
  
 
[[Category:SCI Documentation]]
 
[[Category:SCI Documentation]]
[[Category:Scripting]]
 
 
[[Category:Kernel Functions]]
 
[[Category:Kernel Functions]]
 +
[[Category:System Functions]]

Latest revision as of 18:33, 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


System Functions

Author: Jeff Stephenson

Revision by: David Slayback

 


System Functions


(Wait n)

Wait until n timer ticks (1/60th of a second) have passed since the last call to Wait. This is used to keep animation running at a constant speed -- each pass through the main loop ends with a call to Wait, so the main loop is executed at most once in a given time interval. The standard value of n is 6, leading to animation every 1/10th of a second. If more than n ticks have occurred since the last call to Wait, it returns immediately. The return value of Wait is the number of ticks more than n since the last call.


(GetTime [realTime])

With no arguments, returns the low word of the number of ticks (1/60th of a second) since the game was booted. With an argument, returns real system time in the format:

HHHH/MMMMMM/SSSSSS

 

Notes


 

Table of Contents

 

< Previous: Object Functions Next: String Functions >