|
RuneHive-Game
|
The activity for Vorkath. More...
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. | |
| 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. | |
| void | update () |
| The update method. | |
Static Public Member Functions | |
| static VorkathActivity | create (Player player) |
| Creates a new Vorkath activity for the 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) |
| 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) |
| boolean | clickObject (Player player, ObjectInteractionEvent 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 | |
| VorkathActivity (Player player, int instance) | |
Constructs a new VorkathActivity. | |
Private Attributes | |
| final Player | player |
| The player instance for the activity. | |
| boolean | summoned |
| Flag if Vorkath has been summoned. | |
| Npc | vorkath = new Npc(8059, new Position(2269, 4062)) |
| The Vorkath npc instance. | |
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. | |
The activity for Vorkath.
Definition at line 24 of file VorkathActivity.java.
|
private |
Constructs a new VorkathActivity.
Definition at line 36 of file VorkathActivity.java.
References com.runehive.content.activity.Activity.instance, and player.
Referenced by create().
| boolean com.runehive.content.activity.impl.VorkathActivity.canTeleport | ( | Player | player | ) |
Called when the player attempts to teleport.
Reimplemented from com.runehive.content.activity.Activity.
Definition at line 138 of file VorkathActivity.java.
References player.
| void com.runehive.content.activity.impl.VorkathActivity.cleanup | ( | ) |
Cleans up the activity when finished.
Reimplemented from com.runehive.content.activity.Activity.
Definition at line 81 of file VorkathActivity.java.
References vorkath.
Referenced by finish(), onLogout(), and onRegionChange().
|
protected |
Reimplemented from com.runehive.content.activity.Activity.
Definition at line 86 of file VorkathActivity.java.
References player, com.runehive.game.world.World.schedule(), summoned, and vorkath.
|
static |
Creates a new Vorkath activity for the player.
Definition at line 42 of file VorkathActivity.java.
References player, and VorkathActivity().
Referenced by finish(), and com.runehive.game.world.entity.mob.player.PlayerAssistant.setActivity().
| ActivityDeathType com.runehive.content.activity.impl.VorkathActivity.deathType | ( | ) |
Reimplemented from com.runehive.content.activity.Activity.
Definition at line 133 of file VorkathActivity.java.
References com.runehive.content.activity.ActivityDeathType.PURCHASE.
| void com.runehive.content.activity.impl.VorkathActivity.finish | ( | ) |
Finishes the activity.
Reimplemented from com.runehive.content.activity.Activity.
Definition at line 58 of file VorkathActivity.java.
References com.runehive.content.achievement.AchievementHandler.activate(), cleanup(), create(), com.runehive.util.Utility.getTime(), com.runehive.game.world.position.Area.inVorkath(), player, com.runehive.content.activity.Activity.restart(), com.runehive.content.achievement.AchievementKey.VORKATH, com.runehive.content.activity.ActivityType.VORKATH, com.runehive.content.ActivityLog.VORKATH, and vorkath.
| ActivityType com.runehive.content.activity.impl.VorkathActivity.getType | ( | ) |
Reimplemented from com.runehive.content.activity.Activity.
Definition at line 143 of file VorkathActivity.java.
References com.runehive.content.activity.ActivityType.VORKATH.
| void com.runehive.content.activity.impl.VorkathActivity.onDeath | ( | Mob | mob | ) |
Called when the player die.
Reimplemented from com.runehive.content.activity.Activity.
Definition at line 115 of file VorkathActivity.java.
References com.runehive.game.world.entity.mob.npc.Npc.equals(), com.runehive.game.world.entity.mob.Mob.getNpc(), com.runehive.game.world.entity.mob.Mob.isNpc(), com.runehive.game.world.World.schedule(), and vorkath.
| void com.runehive.content.activity.impl.VorkathActivity.onLogout | ( | Player | player | ) |
Called when the player logs out.
Reimplemented from com.runehive.content.activity.Activity.
Definition at line 109 of file VorkathActivity.java.
References cleanup(), and player.
| void com.runehive.content.activity.impl.VorkathActivity.onRegionChange | ( | Player | player | ) |
Called when the player changes region.
Reimplemented from com.runehive.content.activity.Activity.
Definition at line 125 of file VorkathActivity.java.
References cleanup(), com.runehive.game.world.position.Area.inVorkath(), and player.
|
protected |
Starts the next activity stage.
Reimplemented from com.runehive.content.activity.Activity.
Definition at line 54 of file VorkathActivity.java.
|
private |
The player instance for the activity.
Definition at line 27 of file VorkathActivity.java.
Referenced by canTeleport(), clickNpc(), create(), finish(), onLogout(), onRegionChange(), and VorkathActivity().
|
private |
Flag if Vorkath has been summoned.
Definition at line 33 of file VorkathActivity.java.
Referenced by clickNpc().
|
private |
The Vorkath npc instance.
Definition at line 30 of file VorkathActivity.java.
Referenced by cleanup(), clickNpc(), finish(), and onDeath().