|
RuneHive-Game
|
Teleports an entity to another part of the world. More...
Public Member Functions | |
| String | getName () |
| WalkablePolicy | getWalkablePolicy () |
| boolean | prioritized () |
| TeleportAction (Mob entity, Position position, TeleportationData type, Runnable onDestination) | |
Constructs a new TeleportAction object. | |
| Public Member Functions inherited from com.runehive.game.action.ConsecutiveAction< T extends Mob > | |
| ConsecutiveAction (T mob) | |
Generates a new ConsecutiveAction object. | |
| void | execute () |
| Public Member Functions inherited from com.runehive.game.action.Action< T > | |
| 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. | |
Protected Member Functions | |
| void | onCancel (boolean logout) |
| void | onSchedule () |
| Protected Member Functions inherited from com.runehive.game.action.ConsecutiveAction< T extends Mob > | |
| void | add (Consumer< Action< T > > action) |
Adds an action to the actions list. | |
| void | addFirst (Consumer< Action< T > > action) |
Adds an action to the actions list. | |
Private Member Functions | |
| void | end (Action< Mob > action) |
| void | init () |
| void | move (Action< Mob > action) |
| void | reset (Action< Mob > action) |
| void | start (Action< Mob > action) |
| void | startTablet (Action< Mob > action) |
| boolean | valid (Action< Mob > action) |
Private Attributes | |
| final Runnable | onDestination |
| The destination randomevent. | |
| final Position | position |
| The teleport position. | |
| final TeleportationData | type |
| The teleportType. | |
Teleports an entity to another part of the world.
Definition at line 22 of file TeleportAction.java.
| com.runehive.game.action.impl.TeleportAction.TeleportAction | ( | Mob | entity, |
| Position | position, | ||
| TeleportationData | type, | ||
| Runnable | onDestination ) |
Constructs a new TeleportAction object.
Definition at line 34 of file TeleportAction.java.
References onDestination, position, and type.
Definition at line 114 of file TeleportAction.java.
References com.runehive.game.world.entity.mob.UpdateFlag.APPEARANCE, onDestination, and type.
| String com.runehive.game.action.impl.TeleportAction.getName | ( | ) |
Definition at line 151 of file TeleportAction.java.
| WalkablePolicy com.runehive.game.action.impl.TeleportAction.getWalkablePolicy | ( | ) |
Definition at line 161 of file TeleportAction.java.
References com.runehive.game.action.policy.WalkablePolicy.NON_WALKABLE.
|
private |
Definition at line 56 of file TeleportAction.java.
References com.runehive.game.action.ConsecutiveAction< T extends Mob >.add(), com.runehive.content.skill.impl.magic.teleport.TeleportationData.TABLET, and type.
Referenced by onSchedule().
Definition at line 98 of file TeleportAction.java.
References onDestination, position, reset(), and valid().
|
protected |
Definition at line 135 of file TeleportAction.java.
References com.runehive.game.world.entity.Entity.DEFAULT_INSTANCE, com.runehive.game.action.Action< T >.getMob(), com.runehive.game.Animation.RESET, com.runehive.game.Graphic.RESET, com.runehive.content.skill.impl.magic.teleport.TeleportationData.TABLET, and type.
|
protected |
Definition at line 42 of file TeleportAction.java.
References com.runehive.game.action.Action< T >.getMob(), init(), and valid().
| boolean com.runehive.game.action.impl.TeleportAction.prioritized | ( | ) |
Definition at line 156 of file TeleportAction.java.
Definition at line 129 of file TeleportAction.java.
Referenced by move().
Definition at line 75 of file TeleportAction.java.
References com.runehive.game.action.ConsecutiveAction< T extends Mob >.addFirst(), com.runehive.content.skill.impl.magic.teleport.TeleportationData.HOME, com.runehive.content.skill.impl.magic.teleport.TeleportationData.TABLET, and type.
Definition at line 93 of file TeleportAction.java.
References type.
Definition at line 64 of file TeleportAction.java.
References com.runehive.content.skill.impl.magic.teleport.TeleportationData.HOME, and type.
Referenced by move(), and onSchedule().
|
private |
The destination randomevent.
Definition at line 31 of file TeleportAction.java.
Referenced by end(), move(), and TeleportAction().
|
private |
The teleport position.
Definition at line 25 of file TeleportAction.java.
Referenced by move(), and TeleportAction().
|
private |
The teleportType.
Definition at line 28 of file TeleportAction.java.
Referenced by end(), init(), onCancel(), start(), startTablet(), TeleportAction(), and valid().