|
RuneHive-Game
|
Public Member Functions | |
| boolean | canTeleport (Player player) |
| Called when the player attempts to teleport. | |
| void | cleanup () |
| Cleans up the activity when finished. | |
| ActivityDeathType | deathType () |
| void | finish () |
| Finishes the activity. | |
| ActivityType | getType () |
| void | onDeath (Mob mob) |
| Called when the player die. | |
| void | onLogout (Player player) |
| Called when the player logs out. | |
| void | onRegionChange (Player player) |
| Called when the player changes region. | |
| void | update () |
| The update method. | |
| Public Member Functions inherited from com.runehive.content.activity.Activity | |
| Activity (int cooldown, int instance) | |
Constructs a new SequencedMinigame object. | |
| void | add (Mob mob) |
| Adds a mob to the activity. | |
| boolean | canDrinkPotions (Player player) |
| boolean | canEat (Player player, FoodData foodType) |
| boolean | canEquipItem (Player player, Item item, EquipmentType type) |
| boolean | canLogout (Player player) |
| boolean | canSpellCast (Player player) |
| boolean | canUsePrayer (Player player) |
| boolean | canUseSpecial (Player player) |
| void | cooldown (int cooldown) |
| Applies a cooldown. | |
| int | getInstance () |
| Gets this activity's instance level. | |
| Optional< Activity_Panel > | getPanel () |
| Gets an optional of the activity panel. | |
| int | getTicks () |
| Gets the current ticks. | |
| boolean | onEvent (Player player, InteractionEvent interactionEvent) |
| boolean | onStep (Mob mob) |
| void | remove (Mob mob) |
| Removes a mob from the activity. | |
| void | removeAll (Mob... mobs) |
| Removes all mobs from the activity. | |
| void | sequence () |
| Sequences the activity. | |
| void | setInstance (int instance) |
| void | setPanel (Activity_Panel panel) |
| Sets the activity panel. | |
| void | setPause (boolean pause) |
| Sets the pause state of the activity. | |
Static Public Member Functions | |
| static Barrows | create (Player player) |
| Static Public Member Functions inherited from com.runehive.content.activity.Activity | |
| static boolean | evaluate (Mob mob, Predicate< Activity > predicate) |
| static void | forActivity (Mob mob, Consumer< Activity > consumer) |
| static< T extends Activity > Optional< T > | search (Player player, Class< T > clazz) |
Protected Member Functions | |
| boolean | clickNpc (Player player, NpcInteractionEvent event) |
| boolean | clickObject (Player player, ObjectInteractionEvent event) |
| void | start () |
| Starts the next activity stage. | |
| Protected Member Functions inherited from com.runehive.content.activity.Activity | |
| boolean | clickButton (Player player, ClickButtonInteractionEvent event) |
| boolean | clickItem (Player player, ItemInteractionEvent event) |
| final void | finishCooldown () |
Sets the cooldown flag to FINISH. | |
| Optional<? extends ActivityListener<? extends Activity > > | getListener () |
Gets an Optional of the ActivityListener for this activity. | |
| final boolean | isPaused () |
| Checks if the cooldown is paused. | |
| boolean | itemContainerAction (Player player, ItemContainerInteractionEvent event) |
| final void | pause () |
Sets the cooldown flag to PAUSE. | |
| boolean | pickupItem (Player player, PickupItemInteractionEvent event) |
| final void | resetCooldown () |
| Resets the remaining ticks to the cached cooldown ticks. | |
| void | restart (int delay, Runnable runnable) |
| boolean | useItem (Player player, ItemOnItemInteractionEvent event) |
| boolean | useItem (Player player, ItemOnObjectInteractionEvent event) |
Private Member Functions | |
| Barrows (Player player) | |
| void | move (Position position) |
| void | reset () |
| void | summon (BrotherData brother) |
Private Attributes | |
| Npc | brotherNpc |
| Player | player |
Additional Inherited Members | |
| Static Protected Attributes inherited from com.runehive.content.activity.Activity | |
| static final int | FINISH = -1 |
| The 'finish' cooldown id. | |
| static final int | PAUSE = -2 |
| The 'pause' cooldown id. | |
| static final int | START = 0 |
| The 'start' cooldown id. | |
Definition at line 22 of file Barrows.java.
|
private |
Definition at line 28 of file Barrows.java.
References com.runehive.game.world.entity.Entity.DEFAULT_INSTANCE, and player.
Referenced by create().
| boolean com.runehive.content.activity.impl.barrows.Barrows.canTeleport | ( | Player | player | ) |
Called when the player attempts to teleport.
Reimplemented from com.runehive.content.activity.Activity.
Definition at line 148 of file Barrows.java.
References player.
| void com.runehive.content.activity.impl.barrows.Barrows.cleanup | ( | ) |
Cleans up the activity when finished.
Reimplemented from com.runehive.content.activity.Activity.
Definition at line 108 of file Barrows.java.
References brotherNpc.
Referenced by finish().
|
protected |
Reimplemented from com.runehive.content.activity.Activity.
Definition at line 153 of file Barrows.java.
References com.runehive.content.dialogue.DialogueFactory.execute(), player, reset(), com.runehive.content.dialogue.DialogueFactory.sendNpcChat(), and com.runehive.content.dialogue.DialogueFactory.sendOption().
|
protected |
Reimplemented from com.runehive.content.activity.Activity.
Definition at line 169 of file Barrows.java.
References com.runehive.content.activity.Activity.add(), com.runehive.content.activity.impl.barrows.BrotherData.AHRIM, brotherNpc, com.runehive.content.activity.impl.barrows.BrotherData.DHAROK, finish(), com.runehive.content.activity.impl.barrows.BarrowsUtility.generateRewards(), com.runehive.content.activity.impl.barrows.BrotherData.GUTHAN, com.runehive.content.activity.impl.barrows.BrotherData.KARIL, move(), player, reset(), summon(), com.runehive.content.activity.impl.barrows.BrotherData.TORAG, and com.runehive.content.activity.impl.barrows.BrotherData.VERAC.
Definition at line 33 of file Barrows.java.
References com.runehive.content.activity.Activity.add(), Barrows(), and player.
Referenced by com.runehive.game.world.entity.mob.player.PlayerAssistant.setActivity(), and com.runehive.content.teleport.TeleportHandler.special().
| ActivityDeathType com.runehive.content.activity.impl.barrows.Barrows.deathType | ( | ) |
Reimplemented from com.runehive.content.activity.Activity.
Definition at line 235 of file Barrows.java.
References com.runehive.content.activity.ActivityDeathType.NORMAL.
| void com.runehive.content.activity.impl.barrows.Barrows.finish | ( | ) |
Finishes the activity.
Reimplemented from com.runehive.content.activity.Activity.
Definition at line 101 of file Barrows.java.
References cleanup(), com.runehive.content.activity.panel.ActivityPanel.clear(), and player.
Referenced by clickObject(), onDeath(), onLogout(), and onRegionChange().
| ActivityType com.runehive.content.activity.impl.barrows.Barrows.getType | ( | ) |
Reimplemented from com.runehive.content.activity.Activity.
Definition at line 240 of file Barrows.java.
References com.runehive.content.activity.ActivityType.BARROWS.
|
private |
Definition at line 67 of file Barrows.java.
References brotherNpc, and player.
Referenced by clickObject().
| void com.runehive.content.activity.impl.barrows.Barrows.onDeath | ( | Mob | mob | ) |
Called when the player die.
Reimplemented from com.runehive.content.activity.Activity.
Definition at line 76 of file Barrows.java.
References brotherNpc, com.runehive.game.world.entity.Entity.equals(), finish(), com.runehive.content.activity.impl.barrows.BrotherData.getBarrowsBrother(), com.runehive.content.activity.impl.barrows.BarrowsUtility.getHiddenBrother(), com.runehive.game.world.entity.mob.Mob.getNpc(), com.runehive.game.world.entity.mob.Mob.isNpc(), com.runehive.game.world.entity.mob.Mob.isPlayer(), player, and com.runehive.game.world.World.schedule().
| void com.runehive.content.activity.impl.barrows.Barrows.onLogout | ( | Player | player | ) |
Called when the player logs out.
Reimplemented from com.runehive.content.activity.Activity.
Definition at line 115 of file Barrows.java.
References finish(), and player.
| void com.runehive.content.activity.impl.barrows.Barrows.onRegionChange | ( | Player | player | ) |
Called when the player changes region.
Reimplemented from com.runehive.content.activity.Activity.
Definition at line 120 of file Barrows.java.
References finish(), com.runehive.game.world.position.Area.inBarrows(), and player.
|
private |
Definition at line 126 of file Barrows.java.
References update().
Referenced by clickNpc(), and clickObject().
|
protected |
Starts the next activity stage.
Reimplemented from com.runehive.content.activity.Activity.
Definition at line 96 of file Barrows.java.
|
private |
Definition at line 39 of file Barrows.java.
References com.runehive.content.activity.Activity.add(), brotherNpc, com.runehive.content.activity.impl.barrows.BrotherData.getNpcId(), and player.
Referenced by clickObject().
| void com.runehive.content.activity.impl.barrows.Barrows.update | ( | ) |
The update method.
Reimplemented from com.runehive.content.activity.Activity.
Definition at line 134 of file Barrows.java.
References com.runehive.content.activity.impl.barrows.BrotherData.AHRIM, com.runehive.content.activity.impl.barrows.BrotherData.DHAROK, com.runehive.util.Utility.getPercentageAmount(), com.runehive.content.activity.impl.barrows.BrotherData.GUTHAN, com.runehive.content.activity.impl.barrows.BrotherData.KARIL, player, com.runehive.content.activity.impl.barrows.BrotherData.TORAG, com.runehive.content.activity.panel.ActivityPanel.update(), and com.runehive.content.activity.impl.barrows.BrotherData.VERAC.
Referenced by reset().
|
private |
Definition at line 26 of file Barrows.java.
Referenced by cleanup(), clickObject(), move(), onDeath(), and summon().
|
private |
Definition at line 24 of file Barrows.java.
Referenced by Barrows(), canTeleport(), clickNpc(), clickObject(), create(), finish(), move(), onDeath(), onLogout(), onRegionChange(), summon(), and update().