Class for creating compilable inform files in NLPI's var directory.
Parent classes:
Sent data flows:public Znlpi_inf_out_write_main (Writes the sources to the temporary directory. Step by step:
self in object ,
REQUEST in object ,
PARENTS in list )
return ZClass
- first get the parent ZClass
- set up local path definitions
- create the adjusted .icl file
- update infSrcTask for modifying
- copy the "in tree" source files
Parameters:
public Znlpi_inf_out_compile_main (Compile an inform game and add links in inform output error messages to be opened in the text editor.
self in object ,
REQUEST in object ,
PARENTS in list )
return ZClass
The attributes for invoking the compiler are derived from Znlpi_propLocal.
If only a zcode game file is given (Znlpiprop_uploadFileType == 3) 'compiling' means to copy it to the NLPI var directory. This resource ('zcodeGameCodeFile') becomes thus a base resource (see Znlpi_manager).
Parameters:
public Znlpi_inf_out_text_edit_main (invoke a text editor with line X (usually where an error ocurred). Step by Step:
self in object ,
REQUEST in object ,
PARENTS in list )
return string
- find the path to the file (out of icl information)
- _file_path is the normal source_id this is used to compute the offset-corrected _line. Reason: inf_out_write_main might have inserted lines.
- invoke text editor if a path was found
Parameters:
public Znlpi_inf_out_play_main (play an inform game :-)
self in object ,
REQUEST in object ,
PARENTS in list )
Invokes either Frotz in the CMD window where Zope is running or a new window with WinFrotz.
Parameters:
public Znlpi_download_game_file_name_main (Return the file name (incl. link to the file) or the creation date of the actual game.
self in object ,
REQUEST in object ,
PARENTS in list ,
What in string )
return string
The 'What' argument is either 'file' or something else (='time').
Parameters: