|
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_controller(<Controller> controller)
Removes a controller for the running engine |
<static> void
|
rem_layer(<Layer> layer)
Remove a layer from the engine but does _not_ 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_controller(<Controller> controller)
controller
- instance of the controller to be removed. The controller can be registered again.
<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 |