Creates a new focusable action.
The name of this focusable.
The Netscript object.
Priority this action should run at, lower first.
Time to sleep after a successful focus event, defaults to 15 minutes.
Interval to check while sleeping.
Field to pull detail from.
The Netscript object.
Priority of this focusable.
Time to sleep after a successful focus event.
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
Abstract class handling priority and sleep returns.
IFocusable