Previous: Setup for Ports
Up: Setup for Ports
Next: Chaining with the units DlgGlbls and MarkJump
Previous Page: Setup for Ports
Next Page: Chaining with the units DlgGlbls and MarkJump

Preparing for PtInit

PtInit, in Ports, judges whether it has been called repeatedly from the same module, and considerably reduces the amount of re-setting it does if it thinks it has. This is to permit dialogues to avoid extraordinary measures to make sure they don't call it more than once. To do so, it assumes the conditions it examines occur uniquely at the start of a module. When the module is a program, this assumption is correct.

But when the module is a unit in a monoprogram, these initial conditions must be simulated so that ptInit will continue to judge correctly when to do a full initialization.

The following routines are now exported by Ports to permit an Attract program to restore those starting conditions internally in Ports. They are not intended for casual use by dialogue modules.

Educational Technology Center
Dept. of Info. and Comp.Sci.
Univ. of California, Irvine
92717, CA, USA