|
RuneHive-Game
|
Handles teleporting to various locations around OS Royale. More...
Static Public Member Functions | |
| static void | click (Player player, int button) |
| Handles clicking teleport buttons on the itemcontainer. | |
| static void | display (Player player, Teleport teleport) |
| Displays all the teleport text on the itemcontainer. | |
| static void | favorite (Player player) |
| Handles favorite a teleport. | |
| static void | open (Player player) |
| Opens the teleport itemcontainer. | |
| static void | open (Player player, TeleportType type) |
| Opens the teleport itemcontainer. | |
| static void | open (Player player, TeleportType type, int teleportIndex) |
| Opens the teleport itemcontainer to a certain teleportNoChecks type. | |
| static void | special (Player player, Teleport teleport) |
| Handles special case TELEPORT. | |
| static void | teleport (Player player) |
| Handles teleporting to the destination. | |
Static Private Member Functions | |
| static int | getOrdinal (int button) |
| Gets the ordinal of a teleport based on the list ordinal. | |
| static List< Teleport > | getTeleports (TeleportType type) |
| Gets a list of teleports based off the teleport type. | |
Static Private Attributes | |
| static final String[] | TITLES = {"Favorites", "Minigames", "Skilling", "Monster Killing", "Player Killing", "Boss Killing"} |
| Holds the teleport titles names. | |
Handles teleporting to various locations around OS Royale.
Definition at line 25 of file TeleportHandler.java.
|
static |
Handles clicking teleport buttons on the itemcontainer.
Definition at line 110 of file TeleportHandler.java.
References com.runehive.game.world.entity.mob.Mob.attributes, display(), com.runehive.content.skill.impl.magic.teleport.TeleportType.FAVORITES, com.runehive.util.generic.GenericAttributes.get(), getOrdinal(), getTeleports(), open(), and com.runehive.util.generic.GenericAttributes.set().
|
static |
Displays all the teleport text on the itemcontainer.
Definition at line 72 of file TeleportHandler.java.
References com.runehive.game.world.entity.mob.Mob.attributes, com.runehive.game.world.entity.mob.player.Player.favoriteTeleport, com.runehive.game.world.items.Item.isStackable(), com.runehive.game.world.entity.mob.player.Player.send(), com.runehive.util.generic.GenericAttributes.set(), com.runehive.game.world.items.Item.setAmount(), and teleport().
Referenced by click(), and open().
|
static |
Handles favorite a teleport.
Definition at line 148 of file TeleportHandler.java.
References com.runehive.game.world.entity.mob.Mob.attributes, com.runehive.game.world.entity.mob.player.Player.favoriteTeleport, com.runehive.util.generic.GenericAttributes.get(), open(), com.runehive.game.world.entity.mob.player.Player.send(), and teleport().
Referenced by open().
|
staticprivate |
Gets the ordinal of a teleport based on the list ordinal.
Definition at line 318 of file TeleportHandler.java.
Referenced by click().
|
staticprivate |
Gets a list of teleports based off the teleport type.
Definition at line 309 of file TeleportHandler.java.
Referenced by click(), and open().
|
static |
Opens the teleport itemcontainer.
Definition at line 31 of file TeleportHandler.java.
References com.runehive.content.skill.impl.magic.teleport.TeleportType.FAVORITES, and open().
Referenced by click(), com.runehive.game.action.impl.TutorialActivity.clickButton(), favorite(), open(), and open().
|
static |
Opens the teleport itemcontainer.
Definition at line 36 of file TeleportHandler.java.
References open().
|
static |
Opens the teleport itemcontainer to a certain teleportNoChecks type.
Definition at line 41 of file TeleportHandler.java.
References com.runehive.game.world.entity.mob.Mob.attributes, display(), favorite(), com.runehive.content.skill.impl.magic.teleport.TeleportType.FAVORITES, com.runehive.game.world.entity.mob.player.Player.favoriteTeleport, com.runehive.util.generic.GenericAttributes.get(), getTeleports(), com.runehive.game.world.entity.mob.player.Player.interfaceManager, com.runehive.game.world.entity.mob.player.InterfaceManager.open(), com.runehive.game.world.entity.mob.player.Player.send(), com.runehive.util.generic.GenericAttributes.set(), teleport(), and TITLES.
|
static |
Handles special case TELEPORT.
Definition at line 176 of file TeleportHandler.java.
References com.runehive.content.activity.impl.barrows.Barrows.create(), com.runehive.content.activity.impl.godwars.GodwarsActivity.create(), com.runehive.content.activity.impl.warriorguild.WarriorGuild.create(), com.runehive.game.world.entity.mob.player.Player.dialogueFactory, com.runehive.game.world.entity.skill.SkillManager.getLevel(), com.runehive.game.world.entity.mob.player.Player.isTeleblocked(), com.runehive.game.world.entity.mob.player.Player.message(), com.runehive.util.Utility.randomElement(), com.runehive.game.world.entity.mob.player.Player.send(), com.runehive.content.dialogue.DialogueFactory.sendOption(), com.runehive.content.dialogue.DialogueFactory.sendStatement(), com.runehive.game.world.entity.mob.Mob.skills, com.runehive.content.skill.impl.magic.teleport.Teleportation.teleport(), and teleport().
Referenced by teleport().
|
static |
Handles teleporting to the destination.
Definition at line 122 of file TeleportHandler.java.
References com.runehive.game.world.entity.mob.Mob.attributes, com.runehive.content.activity.inferno.Inferno.create(), com.runehive.util.generic.GenericAttributes.get(), com.runehive.game.world.entity.mob.player.Player.getUsername(), com.runehive.game.world.entity.mob.player.PlayerRight.isAdministrator(), com.runehive.game.world.entity.mob.player.Player.message(), com.runehive.game.world.entity.mob.player.Player.send(), special(), com.runehive.content.skill.impl.magic.teleport.Teleportation.teleport(), teleport(), and com.runehive.game.world.entity.mob.player.Player.wilderness.
Referenced by display(), favorite(), open(), special(), and teleport().
|
staticprivate |
Holds the teleport titles names.
Definition at line 28 of file TeleportHandler.java.
Referenced by open().