Open main menu

Difference between revisions of "SCI/Specifications/SCI in action/Views and animation in SCI"

m
Fix pseudocode display
(Merging of the SCI documentation. Done)
 
m (Fix pseudocode display)
Line 144: Line 144:
The general pseudocode for Animate goes as follows:
The general pseudocode for Animate goes as follows:


<syntax type="?">
<pre>
0. Backup PicNotValid: PicNotValid' := PicNotValid
0. Backup PicNotValid: PicNotValid' := PicNotValid
1. If we don't have a new cast:
1. If we don't have a new cast:
Line 195: Line 195:
         22.1.2. Clear the underbits
         22.1.2. Clear the underbits
     22.2. [24] if DISPOSE_ME is set, call view::dispose to dispose it
     22.2. [24] if DISPOSE_ME is set, call view::dispose to dispose it
</syntax>
</pre>


With the sub-algorithm being:
With the sub-algorithm being:


<syntax type="?">
<pre>
1. For each view from the cast list:
1. For each view from the cast list:
     1.1. [2] If NO_UPDATE is set:
     1.1. [2] If NO_UPDATE is set:
Line 223: Line 223:
     14.1. If NO_UPDATE is set and IS_HIDDEN is clear:
     14.1. If NO_UPDATE is set and IS_HIDDEN is clear:
         14.1.1. [15] Draw the view
         14.1.1. [15] Draw the view
</syntax>
</pre>


Note that the ReAnimate subfunction (0x0D) of the Graph kernel call redraws parts of the maps using the cast list created by Animate, whereas the ShowBits call (0x0C) copies parts of the active map to the physical screen.
Note that the ReAnimate subfunction (0x0D) of the Graph kernel call redraws parts of the maps using the cast list created by Animate, whereas the ShowBits call (0x0C) copies parts of the active map to the physical screen.
1,079

edits