Operations:
public Znlpi_ZipWalkCheckIn (Finally this seemed to work: After the dumb-frotz thread has finished the next request for seeing/editing the walkthrough first checks it into the local ZipClass instance.
self in object ,
REQUEST in object ,
PARENTS in list )
Parameters:
public Znlpi_ZipMachine_open (Initialize a dumb-frotz instance and walk until ZipMachineWalkthroughPosition.
self in object ,
parent in object ,
parentWalk=None in object ,
walkPlay=0 in boolean )
Only one instance can be open at a time. If a second is to be opened the first has to be closed first.
Parameters:
public Znlpi_dtmlZipMachine_open (Interface for external access to Znlpi_ZipMachine_open
self in object ,
REQUEST in object ,
PARENTS in list )
Parameters:
public Znlpi_ZipMachine_close (Close the dumb-frotz instance
self in object )
Parameters:
public Znlpi_ZipOneTurn (Perform one turn on open pipes.
self in object ,
parent in object ,
parentWalk in object ,
fwrite in object ,
fread in object ,
userInput in string ,
term=1 in boolean ,
script=0 in boolean ,
noLock=0 in boolean )
return boolean
Returns 1 if turn was 'quit' (or ^Z = "\xFF")
Dumb-frotz output is read here.
Parameters:
0: walk continues
1: game was 'quit'
public Znlpi_ZipLoop_ttyThread (tty main interpreter loop
self in object ,
parent in object ,
parentWalk in object ,
walkPlay in object )
Access only via threading. It has to care that "quit frotz" is done exclusively here because stdin.readline() blocks when it is run in a separate second thread.
When started always adds user input to the script in parentWalk (at least if parentWalk exists).
Parameters:
public Znlpi_ZipLoop_tty (Entry point for the Znlpi_ZipLoop_ttyThread main interpreter loop. The thread is spawned as daemonic here.
self in object ,
parent in object ,
parentWalk=None in object ,
walkPlay=0 in boolean )
Parameters:
public Znlpi_ZipWalkthroughForm (Pproduce a walkthrough form for the dtml-method Znlpidtml_localWalkForm.
self in object ,
REQUEST in object ,
PARENTS in list )
Includes game output if desired.
Parameters:
public Znlpi_ZipWalkthroughChangePosition (Interpret above form Znlpi_ZipWalkthroughForm and save the position to Znlpiprop_ZipWalkthroughPosition into the local caller instance.
self in object ,
REQUEST in object ,
PARENTS in list )
Parameters:
public Znlpi_ZipWalkthroughChange (Save an edited walkthrough to the ZnlpiZipClass instance.
self in object ,
REQUEST in object ,
PARENTS in list )
Parameters:
public Znlpi_ZipWalkthroughSaveRequest (Save any data needed by further walkthrough dtml pages or calls from the console and get it back by reference.
self in object ,
REQUEST in object ,
PARENTS in list )
This is intended to live only until the second request is done and thus stores its data in the global dictionary Znlpi_ZipWalkRequestData.
Parameters:
public Znlpi_ZipWalkthroughRequest (Gets back data stored in Znlpi_ZipWalkthroughSaveRequest.
self in object ,
symbol in string )
return object
Parameters: