|
FreeJ scripting | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--GLOBALS
| Method Summary | |
<static> void
|
add_layer(<Layer> layer)
Add a layer to the engine and start processing it |
<static> void
|
echo(<string> string)
Print a string to standard output console |
<static> void
|
exec(<string> program, <string> arguments)
Execute an external program on the running system |
<static> Array
|
file_to_strings(<string> file)
Parse a textfile loading in memory all words contained in it |
<static> void
|
include(<string> filename)
Process instructions from another javascript file |
<static> Array
|
list_layers()
List all layers currently registered and processed by the running engine |
<static> void
|
quit()
Quit the running script and close all open layers |
<static> void
|
register_controller(<Controller> controller)
Register a controller for the running engine |
<static> void
|
rem_layer(<Layer> layer)
Remove a layer from the engine and stop processing it |
<static> void
|
run(<double> time)
Run the engine for the indicated amount of time |
<static> string
|
scandir(<string> dir)
List all files inside a directory |
<static> int
|
strstr(<string> haystack, <string> needle)
Check if a "needle" string is contained inside an "haystack" string |
| Method Detail |
<static> void add_layer(<Layer> layer)
layer - instance of the layer to be added
<static> void echo(<string> string)
string - text to be printed to console
<static> void exec(<string> program, <string> arguments)
program - executable to be called (current PATH is searched)
arguments - one or more arguments for the program can follow
<static> Array file_to_strings(<string> file)
file - text to be loaded in memory
<static> void include(<string> filename)
filename - full path to a FreeJ script
<static> Array list_layers()
<static> void quit()
<static> void register_controller(<Controller> controller)
controller - instance of the controller to be registered
<static> void rem_layer(<Layer> layer)
layer - instance to be removed
<static> void run(<double> time)
time - seconds or a fraction of seconds
<static> string scandir(<string> dir)
dir - directory location to explore for files present in it
<static> int strstr(<string> haystack, <string> needle)
haystack - longer string in which we want to search for the needle
needle - shorter string we are searching for
|
FreeJ scripting | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
FreeJ scripting documentation is Copyleft (C) 2000 - 2007 dyne.org foundation. Verbatim copying and distribution of this entire page is permitted in any medium, provided this notice is preserved.