|
RuneHive-Game
|
Handles burying a bone. More...
Public Member Functions | |
| Optional< SkillAnimation > | animation () |
| The skill animation to execute. | |
| BuryBoneAction (Player player, BoneData bone, int slot) | |
| boolean | canInit () |
| Determines if this action can be initialized. | |
| double | experience () |
| The experience given from this action. | |
| String | getName () |
| Gets the name of this action. | |
| WalkablePolicy | getWalkablePolicy () |
| Gets the WalkablePolicy of this action. | |
| void | init () |
| Any functionality that should be handled when this action is submitted. | |
| void | onCancel (boolean logout) |
| A function executed on cancellation. | |
| void | onExecute () |
The method which is called on intervals of the specified #delay;. | |
| boolean | prioritized () |
| Determines if this action is prioritized. | |
| int | skill () |
| The skill we should hand to experience to. | |
| Public Member Functions inherited from com.runehive.content.skill.SkillAction | |
| boolean | ignore () |
| Determines if future skill actions from the same type should be ignored. | |
| 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. | |
| 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. | |
Private Attributes | |
| final BoneData | bone |
| final Item | item |
| final int | slot |
Additional Inherited Members | |
| Protected Member Functions inherited from com.runehive.content.skill.SkillAction | |
| 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. | |
| 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) |
Handles burying a bone.
Definition at line 23 of file BuryBoneAction.java.
| com.runehive.game.action.impl.BuryBoneAction.BuryBoneAction | ( | Player | player, |
| BoneData | bone, | ||
| int | slot ) |
Definition at line 28 of file BuryBoneAction.java.
References bone, com.runehive.game.world.items.containers.ItemContainer.get(), and com.runehive.game.world.entity.mob.player.Player.inventory.
| Optional< SkillAnimation > com.runehive.game.action.impl.BuryBoneAction.animation | ( | ) |
The skill animation to execute.
Reimplemented from com.runehive.content.skill.SkillAction.
Definition at line 80 of file BuryBoneAction.java.
| boolean com.runehive.game.action.impl.BuryBoneAction.canInit | ( | ) |
Determines if this action can be initialized.
true if it can, false otherwise. Reimplemented from com.runehive.content.skill.SkillAction.
Definition at line 36 of file BuryBoneAction.java.
References com.runehive.game.action.Action< T extends Mob >.getMob(), and skill().
| double com.runehive.game.action.impl.BuryBoneAction.experience | ( | ) |
The experience given from this action.
Reimplemented from com.runehive.content.skill.SkillAction.
Definition at line 85 of file BuryBoneAction.java.
References bone, com.runehive.game.action.Action< T extends Mob >.getMob(), com.runehive.content.skillcape.SkillCape.isEquipped(), com.runehive.content.skillcape.SkillCape.PRAYER, and com.runehive.Config.PRAYER_MODIFICATION.
Referenced by onExecute().
| String com.runehive.game.action.impl.BuryBoneAction.getName | ( | ) |
Gets the name of this action.
Reimplemented from com.runehive.game.action.Action< T extends Mob >.
Definition at line 99 of file BuryBoneAction.java.
| WalkablePolicy com.runehive.game.action.impl.BuryBoneAction.getWalkablePolicy | ( | ) |
Gets the WalkablePolicy of this action.
Reimplemented from com.runehive.game.action.Action< T extends Mob >.
Definition at line 109 of file BuryBoneAction.java.
References com.runehive.game.action.policy.WalkablePolicy.NON_WALKABLE.
| void com.runehive.game.action.impl.BuryBoneAction.init | ( | ) |
Any functionality that should be handled when this action is submitted.
Reimplemented from com.runehive.content.skill.SkillAction.
Definition at line 41 of file BuryBoneAction.java.
| void com.runehive.game.action.impl.BuryBoneAction.onCancel | ( | boolean | logout | ) |
A function executed on cancellation.
Reimplemented from com.runehive.game.task.Task.
Definition at line 75 of file BuryBoneAction.java.
References com.runehive.game.action.Action< T extends Mob >.getMob(), and skill().
| void com.runehive.game.action.impl.BuryBoneAction.onExecute | ( | ) |
The method which is called on intervals of the specified #delay;.
Reimplemented from com.runehive.content.skill.SkillAction.
Definition at line 46 of file BuryBoneAction.java.
References com.runehive.content.achievement.AchievementHandler.activate(), com.runehive.game.world.entity.skill.SkillManager.addExperience(), com.runehive.game.world.entity.skill.Skill.addLevel(), bone, com.runehive.content.achievement.AchievementKey.BURY_BONES, com.runehive.game.task.Task.cancel(), com.runehive.game.world.entity.mob.player.Player.equipment, experience(), com.runehive.game.world.entity.skill.SkillManager.get(), com.runehive.game.world.items.containers.equipment.Equipment.getAmuletSlot(), com.runehive.game.world.items.Item.getId(), com.runehive.game.world.entity.skill.SkillManager.getLevel(), com.runehive.game.world.entity.skill.SkillManager.getMaxLevel(), com.runehive.game.action.Action< T extends Mob >.getMob(), com.runehive.game.world.items.Item.getName(), com.runehive.game.world.entity.mob.Mob.getPlayer(), com.runehive.game.world.items.containers.equipment.Equipment.hasAmulet(), com.runehive.game.world.entity.mob.player.Player.inventory, item, com.runehive.game.world.entity.mob.player.Player.message(), com.runehive.game.world.entity.skill.Skill.PRAYER, com.runehive.game.world.entity.skill.SkillManager.refresh(), com.runehive.game.world.items.containers.ItemContainer.remove(), com.runehive.game.world.entity.mob.player.Player.send(), skill(), and com.runehive.game.world.entity.mob.Mob.skills.
| boolean com.runehive.game.action.impl.BuryBoneAction.prioritized | ( | ) |
Determines if this action is prioritized.
When making an action prioritized, the next action will be ignored if not queued.
true if this action is prioritized, false otherwise. Reimplemented from com.runehive.game.action.Action< T extends Mob >.
Definition at line 104 of file BuryBoneAction.java.
| int com.runehive.game.action.impl.BuryBoneAction.skill | ( | ) |
The skill we should hand to experience to.
Reimplemented from com.runehive.content.skill.SkillAction.
Definition at line 94 of file BuryBoneAction.java.
References com.runehive.game.world.entity.skill.Skill.PRAYER.
Referenced by canInit(), onCancel(), and onExecute().
|
private |
Definition at line 26 of file BuryBoneAction.java.
Referenced by BuryBoneAction(), experience(), and onExecute().
|
private |
Definition at line 25 of file BuryBoneAction.java.
Referenced by onExecute().
|
private |
Definition at line 24 of file BuryBoneAction.java.