|
RuneHive-Game
|
Public Member Functions | |
| ChopVineTask (Player player, GameObject object, int respawn) | |
| void | execute () |
| A function representing the unit of work that will be carried out. | |
| 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. | |
Protected Member Functions | |
| void | onCancel (boolean logout) |
| A function executed on cancellation. | |
| void | onSchedule () |
| A function executed on registration. | |
| Protected Member Functions inherited from com.runehive.game.task.Task | |
| void | baseExecute () |
| boolean | canSchedule () |
| A function executed on registration. | |
Private Attributes | |
| final GameObject | object |
| final Player | player |
| final int | respawn |
| int | tick = 0 |
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 15 of file ChopVineTask.java.
| com.runehive.game.task.impl.ChopVineTask.ChopVineTask | ( | Player | player, |
| GameObject | object, | ||
| int | respawn ) |
Definition at line 22 of file ChopVineTask.java.
| void com.runehive.game.task.impl.ChopVineTask.execute | ( | ) |
A function representing the unit of work that will be carried out.
Reimplemented from com.runehive.game.task.Task.
Definition at line 56 of file ChopVineTask.java.
References com.runehive.game.task.Task.cancel(), com.runehive.game.world.entity.mob.Direction.getDirection(), com.runehive.game.world.entity.mob.Direction.getDirectionX(), com.runehive.game.world.entity.mob.Direction.getDirectionY(), player, respawn, and tick.
|
protected |
A function executed on cancellation.
Reimplemented from com.runehive.game.task.Task.
Definition at line 71 of file ChopVineTask.java.
|
protected |
A function executed on registration.
Reimplemented from com.runehive.game.task.Task.
Definition at line 30 of file ChopVineTask.java.
References com.runehive.content.skill.impl.woodcutting.AxeData.animation, com.runehive.game.task.Task.cancel(), com.runehive.content.skill.impl.woodcutting.AxeData.getDefinition(), com.runehive.game.UpdatePriority.HIGH, player, and com.runehive.game.world.entity.skill.Skill.WOODCUTTING.
|
private |
Definition at line 19 of file ChopVineTask.java.
Referenced by ChopVineTask().
|
private |
Definition at line 18 of file ChopVineTask.java.
Referenced by ChopVineTask(), execute(), and onSchedule().
|
private |
Definition at line 20 of file ChopVineTask.java.
Referenced by ChopVineTask(), and execute().
|
private |
Definition at line 17 of file ChopVineTask.java.
Referenced by execute().