Creates a focuser that manages <>.
The Netscript object.
Priority this focuser should run at, defaults to <>
.
The Netscript object.
The name of the focusable.
Execute focus using ns.singularity
, must be implemented by subclass.
Whether the focus action was successful.
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 needed for task, defaults to this._sleepTime
.
The time to sleep before running the manager again.
Gets the current priority of the focusable action.
Current priority, with 0 being the highest.
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 <>.