Creates a focuser that manages program creation.
The Netscript object.
Priority this focuser should run at, defaults to 1
.
Current program being worked on.
Internal focus store.
The Netscript object.
The name of the focusable.
Check if a program can be created. Returns true
if:
Whether the program exists on disk.
Create first available program.
Time to sleep if a program was executed, false otherwise.
Checks whether any program is creatable.
Whether we can currently create any program.
Executes a focus action, returning a predefined sleep time.
_sleepTime
if successful, -1 otherwise.
Gets how often to check for task completion, defaults to this._checkInterval
.
How often to check for task completion.
Returns value from preset field.
Value of this._detailField
if set, "" otherwise
Get time to focus, if set by program.
Time to focus, set by program or default.
Returns default priority if openers can be created, Infinity
otherwise.
The priority of the action.
Checks if the player is still working.
True if user is still working, false otherwise.
Checks if the action should run in the background, defaults to if priority is > 50.
True if this can run in the background, False if it needs to be in the foreground.
Generated using TypeDoc
Focusable managing the creation of new programs.