RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
com.osroyale.game.task.TaskManager Class Reference

Public Member Functions

synchronized void schedule (Task task)
synchronized void processTasks ()
void cancel (Object attachment)
void cancel (Object attachment, boolean logout)

Detailed Description

/**

Definition at line 48 of file TaskManager.java.

Member Function Documentation

◆ cancel() [1/2]

void com.osroyale.game.task.TaskManager.cancel ( Object attachment)
inline

Cancels a task that has a specific attachment.

Parameters
attachmentThe object that is attached to the task.

Definition at line 139 of file TaskManager.java.

◆ cancel() [2/2]

void com.osroyale.game.task.TaskManager.cancel ( Object attachment,
boolean logout )
inline

Cancels a task that has a specific attachment.

Parameters
attachmentThe object that is attached to the task.
logoutWhen the task gets canceled this flag determines if the player should logout.

Definition at line 152 of file TaskManager.java.

◆ processTasks()

synchronized void com.osroyale.game.task.TaskManager.processTasks ( )
inline

This method handles adding new tasks and processing of active tasks.

Definition at line 109 of file TaskManager.java.

◆ schedule()

synchronized void com.osroyale.game.task.TaskManager.schedule ( Task task)
inline

Schedules a Task to be ran in the future.

Parameters
taskThe task to schedule.

Definition at line 74 of file TaskManager.java.


The documentation for this class was generated from the following file: