|
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. | |
| LeverAction (Player mob, GameObject lever, Position position, Direction face) | |
| 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. | |
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 () |
Private Member Functions | |
| LeverAction (Player mob, GameObject lever, Position position, Direction face, Predicate< Player > condition, String message) | |
Private Attributes | |
| final Predicate< Player > | condition |
| int | count |
| final Direction | face |
| final GameObject | lever |
| final String | message |
| final Position | position |
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 LeverAction.java.
| com.runehive.game.action.impl.LeverAction.LeverAction | ( | Player | mob, |
| GameObject | lever, | ||
| Position | position, | ||
| Direction | face ) |
Definition at line 26 of file LeverAction.java.
References face, lever, com.runehive.game.action.Action< T extends Mob >.mob, and position.
|
private |
Definition at line 30 of file LeverAction.java.
References condition, face, lever, message, com.runehive.game.action.Action< T extends Mob >.mob, and position.
|
protected |
A function executed on registration.
Reimplemented from com.runehive.game.task.Task.
Definition at line 40 of file LeverAction.java.
References condition, com.runehive.game.action.Action< T extends Mob >.getMob(), message, and com.runehive.util.MessageColor.RED.
| void com.runehive.game.action.impl.LeverAction.execute | ( | ) |
A function representing the unit of work that will be carried out.
Reimplemented from com.runehive.game.task.Task.
Definition at line 57 of file LeverAction.java.
References com.runehive.content.skill.impl.magic.teleport.Teleportation.activateOverride(), com.runehive.game.task.Task.cancel(), count, com.runehive.game.action.Action< T extends Mob >.getMob(), com.runehive.content.skill.impl.magic.teleport.TeleportationData.MODERN, position, and com.runehive.game.UpdatePriority.VERY_HIGH.
| String com.runehive.game.action.impl.LeverAction.getName | ( | ) |
Gets the name of this action.
Reimplemented from com.runehive.game.action.Action< T extends Mob >.
Definition at line 79 of file LeverAction.java.
| WalkablePolicy com.runehive.game.action.impl.LeverAction.getWalkablePolicy | ( | ) |
Gets the WalkablePolicy of this action.
Reimplemented from com.runehive.game.action.Action< T extends Mob >.
Definition at line 74 of file LeverAction.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 69 of file LeverAction.java.
References com.runehive.game.action.Action< T extends Mob >.getMob().
|
protected |
A function executed on registration.
Reimplemented from com.runehive.game.task.Task.
Definition at line 49 of file LeverAction.java.
References com.runehive.game.action.Action< T extends Mob >.getMob(), and position.
| boolean com.runehive.game.action.impl.LeverAction.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 84 of file LeverAction.java.
|
private |
Definition at line 23 of file LeverAction.java.
Referenced by canSchedule(), and LeverAction().
|
private |
Definition at line 19 of file LeverAction.java.
Referenced by execute().
|
private |
Definition at line 22 of file LeverAction.java.
Referenced by LeverAction(), and LeverAction().
|
private |
Definition at line 20 of file LeverAction.java.
Referenced by LeverAction(), and LeverAction().
|
private |
Definition at line 24 of file LeverAction.java.
Referenced by canSchedule(), and LeverAction().
|
private |
Definition at line 21 of file LeverAction.java.
Referenced by execute(), LeverAction(), LeverAction(), and onSchedule().