Creates a new manager capable of handling multiple IFocusables.
The Netscript object
Currently executing focusable.
The Netscript object.
All registered focus actions.
Sleep time left.
The name of the focusable.
Returns whether any registered focus actions are executable.
True if any registered actions are available, false otherwise.
Clear current focus.
Decrement focus time and return the new value.
New focus time after decrementing.
Executes focus() on highest priority item which canFocus().
Whether the focus action was successful.
Gets the check interval from the focusable, defaults to DEFAULT_CHECK_INTERVAL
Amount of time to wait in between soft-sleep checks.
Not applicable to the FocusManager.
Gets the focus time left, can be decremented using decrementFocusTime.
Time left to focus.
Not applicable to the FocusManager.
Check whether the player is focusing on something.
Whether the player is focusing on something.
Registers a new IFocusable with this manager.
Check if current focusable needs to continue running.
True if it should continue, false otherwise.
Not applicable to the FocusManager.
Generated using TypeDoc
Manages
IFocusableobjects, executing based on priority.IFocusable