FreeJ scripting

Class GLOBALS

Object
   |
   +--GLOBALS

class 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

add_layer

<static> void add_layer(<Layer> layer)

echo

<static> void echo(<string> string)

exec

<static> void exec(<string> program, <string> arguments)

file_to_strings

<static> Array file_to_strings(<string> file)

include

<static> void include(<string> filename)

list_layers

<static> Array list_layers()

quit

<static> void quit()

register_controller

<static> void register_controller(<Controller> controller)

rem_controller

<static> void rem_controller(<Controller> controller)

rem_layer

<static> void rem_layer(<Layer> layer)

run

<static> void run(<double> time)

scandir

<static> string scandir(<string> dir)

strstr

<static> int strstr(<string> haystack, <string> needle)

FreeJ scripting

| 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.
Send inquiries & questions to dyne.org's hackers.
Documentation generated by JSDoc on Thu May 29 20:56:52 2008