|
RuneHive-Game
|
Classes | |
| class | SkillAnimation |
| A simple wrapper class which wraps an animation to a delay. More... | |
Public Member Functions | |
| abstract Optional< SkillAnimation > | animation () |
| The skill animation to execute. | |
| abstract boolean | canInit () |
| Determines if this action can be initialized. | |
| abstract double | experience () |
| The experience given from this action. | |
| boolean | ignore () |
| Determines if future skill actions from the same type should be ignored. | |
| abstract void | init () |
| Any functionality that should be handled when this action is submitted. | |
| abstract void | onExecute () |
The method which is called on intervals of the specified #delay;. | |
| abstract int | skill () |
| The skill we should hand to experience to. | |
| SkillAction (Mob mob, Optional< Position > position, boolean instant) | |
Creates a new Action randomevent. | |
| SkillAction (Mob mob, Optional< Position > position, int delay, boolean instant) | |
Creates a new Action randomevent. | |
| final void | start () |
| Attempts to start the skill. | |
| Public Member Functions inherited from com.runehive.game.action.Action< T extends Mob > | |
| Action (T mob, int delay) | |
Creates a new Action randomevent. | |
| Action (T mob, int delay, boolean instant) | |
Creates a new Action randomevent. | |
| boolean | cancellableInProgress () |
| T | getMob () |
| Gets the player. | |
| abstract String | getName () |
| Gets the name of this action. | |
| abstract WalkablePolicy | getWalkablePolicy () |
| Gets the WalkablePolicy of this action. | |
| boolean | prioritized () |
| Determines if this action is prioritized. | |
| 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 | |
| final void | execute () |
| A function representing the unit of work that will be carried out. | |
| final 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. | |
| void | onCancel (boolean logout) |
| A function executed on cancellation. | |
Private Attributes | |
| int | animationCounter |
| The animation counter of this task. | |
| final Optional< Position > | position |
| The position we should face. | |
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 14 of file SkillAction.java.
| com.runehive.content.skill.SkillAction.SkillAction | ( | Mob | mob, |
| Optional< Position > | position, | ||
| int | delay, | ||
| boolean | instant ) |
Creates a new Action randomevent.
Definition at line 29 of file SkillAction.java.
References com.runehive.game.task.Task.delay, com.runehive.game.task.Task.instant, com.runehive.game.action.Action< T extends Mob >.mob, and position.
| com.runehive.content.skill.SkillAction.SkillAction | ( | Mob | mob, |
| Optional< Position > | position, | ||
| boolean | instant ) |
Creates a new Action randomevent.
Definition at line 41 of file SkillAction.java.
References com.runehive.game.task.Task.instant, com.runehive.game.action.Action< T extends Mob >.mob, and position.
|
abstract |
The skill animation to execute.
Reimplemented in com.runehive.content.skill.impl.firemaking.FiremakingAction, com.runehive.content.skill.impl.smithing.SmithingArmour, com.runehive.game.action.impl.BuryBoneAction, and com.runehive.game.action.impl.ScatterAshAction.
Referenced by execute(), and onSchedule().
|
abstract |
Determines if this action can be initialized.
true if it can, false otherwise. Reimplemented in com.runehive.content.skill.impl.firemaking.FiremakingAction, com.runehive.content.skill.impl.smithing.SmithingArmour, com.runehive.game.action.impl.BuryBoneAction, and com.runehive.game.action.impl.ScatterAshAction.
Referenced by onSchedule(), and start().
|
protected |
A function representing the unit of work that will be carried out.
Reimplemented from com.runehive.game.task.Task.
Definition at line 125 of file SkillAction.java.
References animation(), animationCounter, com.runehive.game.task.Task.cancel(), com.runehive.game.task.Task.canRun(), com.runehive.game.task.Task.delay, com.runehive.game.action.Action< T extends Mob >.getMob(), and onExecute().
Referenced by com.runehive.content.skill.impl.firemaking.FiremakingAction.onDestruct().
|
abstract |
The experience given from this action.
Reimplemented in com.runehive.content.skill.impl.firemaking.FiremakingAction, com.runehive.content.skill.impl.smithing.SmithingArmour, com.runehive.game.action.impl.BuryBoneAction, and com.runehive.game.action.impl.ScatterAshAction.
Referenced by com.runehive.content.skill.impl.DestructionSkillAction.onExecute(), com.runehive.content.skill.impl.HarvestingSkillAction.onExecute(), and com.runehive.content.skill.impl.ProducingSkillAction.onExecute().
| boolean com.runehive.content.skill.SkillAction.ignore | ( | ) |
Determines if future skill actions from the same type should be ignored.
Definition at line 103 of file SkillAction.java.
|
abstract |
Any functionality that should be handled when this action is submitted.
Reimplemented in com.runehive.content.skill.impl.firemaking.FiremakingAction, com.runehive.content.skill.impl.smithing.SmithingArmour, com.runehive.game.action.impl.BuryBoneAction, and com.runehive.game.action.impl.ScatterAshAction.
Referenced by onSchedule().
|
abstract |
The method which is called on intervals of the specified #delay;.
Reimplemented in com.runehive.content.skill.impl.DestructionSkillAction, com.runehive.content.skill.impl.HarvestingSkillAction, com.runehive.content.skill.impl.ProducingSkillAction, com.runehive.game.action.impl.BuryBoneAction, and com.runehive.game.action.impl.ScatterAshAction.
Referenced by execute().
|
protected |
A function executed on registration.
Reimplemented from com.runehive.game.task.Task.
Definition at line 113 of file SkillAction.java.
References animation(), com.runehive.game.task.Task.cancel(), canInit(), com.runehive.game.task.Task.canRun(), com.runehive.game.action.Action< T extends Mob >.getMob(), init(), and com.runehive.game.task.Task.instant.
|
abstract |
The skill we should hand to experience to.
Reimplemented in com.runehive.content.skill.impl.firemaking.FiremakingAction, com.runehive.content.skill.impl.smithing.SmithingArmour, com.runehive.game.action.impl.BuryBoneAction, and com.runehive.game.action.impl.ScatterAshAction.
Referenced by com.runehive.content.skill.impl.DestructionSkillAction.onExecute(), com.runehive.content.skill.impl.HarvestingSkillAction.onExecute(), and com.runehive.content.skill.impl.ProducingSkillAction.onExecute().
| final void com.runehive.content.skill.SkillAction.start | ( | ) |
Attempts to start the skill.
Definition at line 48 of file SkillAction.java.
References canInit(), com.runehive.game.action.Action< T extends Mob >.getMob(), and position.
Referenced by com.runehive.content.skill.impl.prayer.BoneSacrifice.clickItem().
|
private |
The animation counter of this task.
Definition at line 110 of file SkillAction.java.
Referenced by execute().
|
private |
The position we should face.
Definition at line 19 of file SkillAction.java.
Referenced by com.runehive.content.skill.impl.DestructionSkillAction.DestructionSkillAction(), com.runehive.content.skill.impl.HarvestingSkillAction.HarvestingSkillAction(), com.runehive.content.skill.impl.HarvestingSkillAction.HarvestingSkillAction(), com.runehive.content.skill.impl.ProducingSkillAction.ProducingSkillAction(), com.runehive.content.skill.impl.ProducingSkillAction.ProducingSkillAction(), SkillAction(), SkillAction(), and start().