|
RuneHive-Game
|
Public Member Functions | |
| void | execute () |
| A function representing the unit of work that will be carried out. | |
| String | getName () |
| Gets the name of this action. | |
| WalkablePolicy | getWalkablePolicy () |
| Gets the WalkablePolicy of this action. | |
| boolean | prioritized () |
| Determines if this action is prioritized. | |
| 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. | |
Static Public Member Functions | |
| static void | clearInterfaces (Player player) |
| Sends the items on the smelting itemcontainer. | |
Static Public Attributes | |
| static final int[] | SMELT_BARS = {2349, 2351, 2355, 2353, 2357, 2359, 2361, 2363} |
| The bar identification to be drawn on each frame. | |
Protected Member Functions | |
| boolean | canSchedule () |
| A function executed on registration. | |
| 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 () |
Static Package Functions | |
| static boolean | openInterface (Player player, GameObject object) |
Opens the smelting itemcontainer for the player. | |
| static boolean | smelt (Player player, int buttonId) |
Attempts to start smelting for the specified player. | |
Private Member Functions | |
| boolean | smelt () |
| Checks if the player has the requirements to smelt. | |
| Smelting (Player player, SmeltingData definition, int amount, boolean spell) | |
Constructs a new Smelting. | |
Static Private Member Functions | |
| static void | smelt (Player player, SmeltingData data, int amount) |
Smelts the data for the specified player and produces the exact amount the player inputed if he has the requirements. | |
Private Attributes | |
| int | amount |
| The amount we're producing. | |
| final SmeltingData | definition |
| The definition of the bar we're creating. | |
| final boolean | spell |
| Determines if we're smelting dependant on the superheat spell. | |
Static Private Attributes | |
| static final int[] | FURNACE_IDS = {16469, 3994} |
| The array which holds all the possible furnace ids a player can smelt his bars in. | |
| static final int[] | SMELT_FRAME = {2405, 2406, 2407, 2409, 2410, 2411, 2412, 2413} |
| The array which holds all the frames you can draw an item on. | |
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 18 of file Smelting.java.
|
private |
Constructs a new Smelting.
Definition at line 38 of file Smelting.java.
References amount, definition, com.runehive.content.skillcape.SkillCape.isEquipped(), com.runehive.content.skillcape.SkillCape.SMITHING, and spell.
Referenced by smelt(), and smelt().
|
protected |
A function executed on registration.
Reimplemented from com.runehive.game.task.Task.
Definition at line 125 of file Smelting.java.
References com.runehive.game.action.Action< T extends Mob >.getMob(), and com.runehive.game.world.entity.skill.Skill.SMITHING.
|
static |
Sends the items on the smelting itemcontainer.
Definition at line 89 of file Smelting.java.
References com.runehive.game.world.entity.mob.player.Player.send(), SMELT_BARS, and SMELT_FRAME.
Referenced by com.runehive.game.world.entity.skill.SkillManager.login().
| void com.runehive.content.skill.impl.smithing.Smelting.execute | ( | ) |
A function representing the unit of work that will be carried out.
Reimplemented from com.runehive.game.task.Task.
Definition at line 134 of file Smelting.java.
References com.runehive.game.task.Task.cancel(), com.runehive.game.action.Action< T extends Mob >.getMob(), smelt(), and com.runehive.game.world.entity.skill.Skill.SMITHING.
| String com.runehive.content.skill.impl.smithing.Smelting.getName | ( | ) |
Gets the name of this action.
Reimplemented from com.runehive.game.action.Action< T extends Mob >.
Definition at line 162 of file Smelting.java.
| WalkablePolicy com.runehive.content.skill.impl.smithing.Smelting.getWalkablePolicy | ( | ) |
Gets the WalkablePolicy of this action.
Reimplemented from com.runehive.game.action.Action< T extends Mob >.
Definition at line 157 of file Smelting.java.
References com.runehive.game.action.policy.WalkablePolicy.NON_WALKABLE.
|
protected |
A function executed on cancellation.
Reimplemented from com.runehive.game.task.Task.
Definition at line 146 of file Smelting.java.
References com.runehive.game.action.Action< T extends Mob >.getMob(), and com.runehive.game.world.entity.skill.Skill.SMITHING.
|
protected |
A function executed on registration.
Reimplemented from com.runehive.game.task.Task.
Definition at line 130 of file Smelting.java.
|
staticpackage |
Opens the smelting itemcontainer for the player.
Definition at line 70 of file Smelting.java.
References FURNACE_IDS, and com.runehive.game.world.entity.mob.player.Player.send().
Referenced by com.runehive.content.skill.impl.smithing.Smithing.clickObject().
| boolean com.runehive.content.skill.impl.smithing.Smelting.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 152 of file Smelting.java.
|
private |
Checks if the player has the requirements to smelt.
Definition at line 96 of file Smelting.java.
References amount, com.runehive.game.task.Task.cancel(), definition, com.runehive.game.action.Action< T extends Mob >.getMob(), com.runehive.game.world.entity.skill.Skill.SMITHING, com.runehive.Config.SMITHING_MODIFICATION, spell, and com.runehive.content.activity.randomevent.RandomEventHandler.trigger().
Referenced by execute(), and smelt().
|
staticpackage |
Attempts to start smelting for the specified player.
Definition at line 46 of file Smelting.java.
References com.runehive.content.skill.impl.smithing.SmeltingData.getDefinition(), com.runehive.game.world.entity.mob.player.Player.send(), smelt(), and Smelting().
Referenced by com.runehive.content.skill.impl.smithing.Smithing.clickButton().
|
staticprivate |
Smelts the data for the specified player and produces the exact amount the player inputed if he has the requirements.
Definition at line 63 of file Smelting.java.
References com.runehive.game.world.entity.mob.Mob.action, amount, com.runehive.game.world.entity.mob.player.InterfaceManager.close(), com.runehive.game.action.ActionManager.execute(), com.runehive.game.world.entity.skill.SkillManager.get(), com.runehive.game.world.entity.mob.player.Player.interfaceManager, com.runehive.game.world.entity.skill.Skill.setDoingSkill(), com.runehive.game.world.entity.mob.Mob.skills, Smelting(), and com.runehive.game.world.entity.skill.Skill.SMITHING.
|
private |
The amount we're producing.
Definition at line 35 of file Smelting.java.
Referenced by smelt(), smelt(), and Smelting().
|
private |
The definition of the bar we're creating.
Definition at line 29 of file Smelting.java.
Referenced by smelt(), and Smelting().
|
staticprivate |
The array which holds all the possible furnace ids a player can smelt his bars in.
Definition at line 20 of file Smelting.java.
Referenced by openInterface().
|
static |
The bar identification to be drawn on each frame.
Definition at line 26 of file Smelting.java.
Referenced by clearInterfaces(), and com.runehive.content.skill.impl.smithing.Smithing.clickObject().
|
staticprivate |
The array which holds all the frames you can draw an item on.
Definition at line 23 of file Smelting.java.
Referenced by clearInterfaces().
|
private |
Determines if we're smelting dependant on the superheat spell.
Definition at line 32 of file Smelting.java.
Referenced by smelt(), and Smelting().