|
RuneHive-Game
|
Created by Daniel on 2017-12-12. More...
Public Member Functions | |
| CannonBuild (Player player, Cannon cannon) | |
| Public Member Functions inherited from com.runehive.game.task.TickableTask | |
| void | execute () |
| A function representing the unit of work that will be carried out. | |
| TickableTask (boolean instant, int delay) | |
| 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. | |
| void | tick () |
| Protected Member Functions inherited from com.runehive.game.task.Task | |
| void | baseExecute () |
| boolean | canSchedule () |
| A function executed on registration. | |
Private Attributes | |
| final Cannon | cannon |
| final Player | player |
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) |
Created by Daniel on 2017-12-12.
Definition at line 13 of file CannonBuild.java.
Definition at line 19 of file CannonBuild.java.
|
protected |
A function executed on cancellation.
Reimplemented from com.runehive.game.task.Task.
Definition at line 31 of file CannonBuild.java.
References player.
|
protected |
A function executed on registration.
Reimplemented from com.runehive.game.task.Task.
Definition at line 26 of file CannonBuild.java.
References player.
|
protected |
Reimplemented from com.runehive.game.task.TickableTask.
Definition at line 36 of file CannonBuild.java.
References com.runehive.content.combat.cannon.CannonManager.ACTIVE_CANNONS, com.runehive.content.combat.cannon.CannonManager.Setup.BARRELS, com.runehive.content.combat.cannon.CannonManager.Setup.BASE, com.runehive.game.task.Task.cancel(), cannon, com.runehive.content.combat.cannon.CannonManager.Setup.COMPLETE_CANNON, com.runehive.content.combat.cannon.CannonManager.Setup.FURNACE, com.runehive.content.combat.cannon.CannonManager.Rotation.NORTH, com.runehive.game.world.entity.mob.Direction.NORTH_EAST, player, com.runehive.content.combat.cannon.CannonManager.Setup.STAND, and tick().
Referenced by tick().
|
private |
Definition at line 16 of file CannonBuild.java.
Referenced by CannonBuild(), and tick().
|
private |
Definition at line 15 of file CannonBuild.java.
Referenced by CannonBuild(), onCancel(), onSchedule(), and tick().