|
RuneHive-Game
|
Public Member Functions | |
| HunterTask () | |
| Public Member Functions inherited from com.runehive.game.task.Task | |
| Task | attach (Object newKey) |
| Attaches a new key. | |
| synchronized final void | cancel () |
| Cancels all subsequent executions. | |
| synchronized final void | cancel (boolean logout) |
| Cancels all subsequent executions. | |
| boolean | canRun () |
| Determines if the task can be ran. | |
| Optional< Object > | getAttachment () |
| String | getCreationStackTraceStr () |
| int | getDelay () |
| Long | getElapsedTimeFromRunStartTime () |
| Optional< Long > | getRunStartTime () |
| long | getTaskCreationTime () |
| String | getTaskId () |
| boolean | isInstant () |
| boolean | isRunning () |
| void | setDelay (int delay) |
| Sets the cyclic delay. | |
| void | setExecutionTime () |
| Task (boolean instant, int delay) | |
Creates a new Task. | |
| Task (int delay) | |
Creates a new Task that doesn't execute instantly. | |
Static Public Member Functions | |
| static void | intialize () |
Protected Member Functions | |
| void | execute () |
| A function representing the unit of work that will be carried out. | |
| void | onCancel (boolean logout) |
| A function executed on cancellation. | |
| Protected Member Functions inherited from com.runehive.game.task.Task | |
| void | baseExecute () |
| boolean | canSchedule () |
| A function executed on registration. | |
| void | onSchedule () |
| A function executed on registration. | |
Static Private Attributes | |
| static boolean | RUNNING |
Additional Inherited Members | |
| Package Functions inherited from com.runehive.game.task.Task | |
| void | onException (Exception e) |
| A function executed on thrown exceptions. | |
| void | onLoop () |
| A function executed when iterated over. | |
| final synchronized void | process () |
| synchronized void | setRunning (boolean running) |
Definition at line 11 of file HunterTask.java.
| com.runehive.game.task.impl.HunterTask.HunterTask | ( | ) |
Definition at line 21 of file HunterTask.java.
Referenced by intialize().
|
protected |
A function representing the unit of work that will be carried out.
Reimplemented from com.runehive.game.task.Task.
Definition at line 26 of file HunterTask.java.
References com.runehive.game.task.Task.cancel(), com.runehive.content.skill.impl.hunter.trap.TrapManager.deregister(), com.runehive.content.skill.impl.hunter.trap.Trap.getOwner(), com.runehive.game.world.entity.Entity.isRegistered(), com.runehive.content.skill.impl.hunter.trap.TrapExecution.setTrapProcess(), com.runehive.content.skill.impl.hunter.trap.TrapManager.traps, and com.runehive.content.skill.impl.hunter.trap.TrapExecution.trapTimerManagement().
|
static |
Definition at line 14 of file HunterTask.java.
References HunterTask(), RUNNING, and com.runehive.game.world.World.schedule().
Referenced by com.runehive.content.skill.impl.hunter.trap.TrapManager.layTrap().
|
protected |
A function executed on cancellation.
Reimplemented from com.runehive.game.task.Task.
Definition at line 44 of file HunterTask.java.
References RUNNING.
|
staticprivate |
Definition at line 12 of file HunterTask.java.
Referenced by intialize(), and onCancel().