RuneHive-Tarnish
Neural OSRS Enhancement Framework
|
Public Member Functions | |
SpellAction (Player player, Spell spell, Item item) | |
void | execute () |
String | getName () |
boolean | prioritized () |
WalkablePolicy | getWalkablePolicy () |
Public Member Functions inherited from com.osroyale.game.action.Action< T extends Mob > | |
Action (T mob, int delay, boolean instant) | |
Action (T mob, int delay) | |
T | getMob () |
Public Member Functions inherited from com.osroyale.game.task.Task | |
Task (boolean instant, int delay) | |
Task (int delay) | |
boolean | canRun () |
synchronized final void | cancel () |
synchronized final void | cancel (boolean logout) |
Task | attach (Object newKey) |
boolean | isInstant () |
int | getDelay () |
void | setDelay (int delay) |
boolean | isRunning () |
Optional< Object > | getAttachment () |
Protected Member Functions | |
void | onSchedule () |
Protected Member Functions inherited from com.osroyale.game.task.Task | |
boolean | canSchedule () |
void | onCancel (boolean logout) |
Handles the spell casting action.
Definition at line 13 of file SpellAction.java.
|
inline |
Creates the SpellAction
.
Definition at line 18 of file SpellAction.java.
|
inline |
A function representing the unit of work that will be carried out.
Reimplemented from com.osroyale.game.task.Task.
Definition at line 30 of file SpellAction.java.
|
inline |
Gets the name of this action.
Reimplemented from com.osroyale.game.action.Action< T extends Mob >.
Definition at line 35 of file SpellAction.java.
|
inline |
Gets the WalkablePolicy of this action.
Reimplemented from com.osroyale.game.action.Action< T extends Mob >.
Definition at line 45 of file SpellAction.java.
|
inlineprotected |
A function executed on registration.
Reimplemented from com.osroyale.game.task.Task.
Definition at line 25 of file SpellAction.java.
|
inline |
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.osroyale.game.action.Action< T extends Mob >.
Definition at line 40 of file SpellAction.java.