|
RuneHive-Game
|
A Activity object constructs an in-game activity and sequences it through the start() and finish() methods with a set in game ticks.
More...
cooldown
Public Member Functions | |
| 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 | canTeleport (Player player) |
| Called when the player attempts to teleport. | |
| boolean | canUsePrayer (Player player) |
| boolean | canUseSpecial (Player player) |
| abstract void | cleanup () |
| Cleans up the activity when finished. | |
| void | cooldown (int cooldown) |
| Applies a cooldown. | |
| ActivityDeathType | deathType () |
| abstract void | finish () |
| Finishes the activity. | |
| 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. | |
| abstract ActivityType | getType () |
| void | onDeath (Mob mob) |
| Called when the player die. | |
| boolean | onEvent (Player player, InteractionEvent interactionEvent) |
| void | onLogout (Player player) |
| Called when the player logs out. | |
| void | onRegionChange (Player player) |
| Called when the player changes region. | |
| 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 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 | clickButton (Player player, ClickButtonInteractionEvent event) |
| boolean | clickItem (Player player, ItemInteractionEvent event) |
| boolean | clickNpc (Player player, NpcInteractionEvent 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) |
| abstract void | start () |
| Starts the next activity stage. | |
| boolean | useItem (Player player, ItemOnItemInteractionEvent event) |
| boolean | useItem (Player player, ItemOnObjectInteractionEvent event) |
Static Protected Attributes | |
| 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. | |
Private Attributes | |
| final int | cooldown |
| The sequencing cooldown. | |
| int | instance |
| The activity instance level. | |
| Activity_Panel | panel |
| The panel for this activity. | |
| int | ticks |
| The remaining game ticks. | |
A Activity object constructs an in-game activity and sequences it through the start() and finish() methods with a set in game ticks.
cooldown
Definition at line 31 of file Activity.java.
| com.runehive.content.activity.Activity.Activity | ( | int | cooldown, |
| int | instance ) |
Constructs a new SequencedMinigame object.
Definition at line 55 of file Activity.java.
References cooldown, and instance.
Referenced by com.runehive.content.activity.GroupActivity.addActivity(), com.runehive.content.activity.GroupActivity.finish(), com.runehive.content.activity.GroupActivity.getActivity(), and search().
| void com.runehive.content.activity.Activity.add | ( | Mob | mob | ) |
Adds a mob to the activity.
Reimplemented in com.runehive.content.activity.impl.kraken.KrakenActivity.
Definition at line 198 of file Activity.java.
References com.runehive.game.world.entity.mob.Mob.getCombat(), getListener(), instance, com.runehive.game.world.entity.mob.Mob.isNpc(), com.runehive.game.world.entity.Entity.isRegistered(), com.runehive.game.world.entity.Entity.register(), com.runehive.game.world.entity.mob.Mob.setActivity(), com.runehive.game.world.entity.mob.Mob.unpoison(), and com.runehive.game.world.entity.mob.Mob.unvenom().
Referenced by com.runehive.content.activity.GroupActivity.addActivity(), com.runehive.content.activity.impl.barrows.Barrows.clickObject(), com.runehive.content.activity.impl.barrows.Barrows.create(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.create(), com.runehive.content.activity.impl.fightcaves.FightCaves.create(), com.runehive.content.activity.impl.recipefordisaster.RecipeForDisaster.create(), com.runehive.content.activity.impl.warriorguild.WarriorGuild.create(), com.runehive.content.activity.inferno.Inferno.create(), com.runehive.game.action.impl.TutorialActivity.create(), com.runehive.content.activity.impl.fightcaves.FightCaves.handleDeath(), com.runehive.content.activity.inferno.Inferno.handleDeath(), com.runehive.content.activity.impl.pestcontrol.PestControlGame.onStart(), com.runehive.content.activity.impl.pestcontrol.PestControlGame.spawn(), com.runehive.content.activity.impl.CerberusActivity.start(), com.runehive.content.activity.impl.fightcaves.FightCaves.start(), com.runehive.content.activity.impl.magearena.MageArena.start(), com.runehive.content.activity.impl.recipefordisaster.RecipeForDisaster.start(), com.runehive.content.activity.inferno.Inferno.start(), com.runehive.content.activity.randomevent.RandomEvent.start(), com.runehive.game.action.impl.TutorialActivity.start(), com.runehive.content.activity.impl.barrows.Barrows.summon(), and com.runehive.content.activity.impl.warriorguild.WarriorGuild.summon().
| boolean com.runehive.content.activity.Activity.canDrinkPotions | ( | Player | player | ) |
Reimplemented in com.runehive.content.activity.impl.duelarena.DuelArenaActivity.
Definition at line 106 of file Activity.java.
Reimplemented in com.runehive.content.activity.impl.duelarena.DuelArenaActivity.
Definition at line 94 of file Activity.java.
| boolean com.runehive.content.activity.Activity.canEquipItem | ( | Player | player, |
| Item | item, | ||
| EquipmentType | type ) |
Reimplemented in com.runehive.content.activity.impl.duelarena.DuelArenaActivity.
Definition at line 90 of file Activity.java.
| boolean com.runehive.content.activity.Activity.canLogout | ( | Player | player | ) |
Reimplemented in com.runehive.content.activity.impl.duelarena.DuelArenaActivity, and com.runehive.content.activity.impl.pestcontrol.PestControlGame.
Definition at line 110 of file Activity.java.
| boolean com.runehive.content.activity.Activity.canSpellCast | ( | Player | player | ) |
Definition at line 114 of file Activity.java.
| boolean com.runehive.content.activity.Activity.canTeleport | ( | Player | player | ) |
Called when the player attempts to teleport.
Reimplemented in com.runehive.content.activity.impl.barrows.Barrows, com.runehive.content.activity.impl.CerberusActivity, com.runehive.content.activity.impl.fightcaves.FightCaves, com.runehive.content.activity.impl.godwars.GodwarsActivity, com.runehive.content.activity.impl.JailActivity, com.runehive.content.activity.impl.kraken.KrakenActivity, com.runehive.content.activity.impl.magearena.MageArena, com.runehive.content.activity.impl.pestcontrol.PestControlGame, com.runehive.content.activity.impl.recipefordisaster.RecipeForDisaster, com.runehive.content.activity.impl.VorkathActivity, com.runehive.content.activity.impl.warriorguild.WarriorGuild, com.runehive.content.activity.impl.zulrah.ZulrahActivity, and com.runehive.content.activity.inferno.Inferno.
Definition at line 193 of file Activity.java.
| boolean com.runehive.content.activity.Activity.canUsePrayer | ( | Player | player | ) |
Reimplemented in com.runehive.content.activity.impl.duelarena.DuelArenaActivity, and com.runehive.content.activity.impl.recipefordisaster.RecipeForDisaster.
Definition at line 102 of file Activity.java.
| boolean com.runehive.content.activity.Activity.canUseSpecial | ( | Player | player | ) |
Reimplemented in com.runehive.content.activity.impl.duelarena.DuelArenaActivity.
Definition at line 98 of file Activity.java.
|
abstract |
Cleans up the activity when finished.
Reimplemented in com.runehive.content.activity.GroupActivity, com.runehive.content.activity.impl.barrows.Barrows, com.runehive.content.activity.impl.CerberusActivity, com.runehive.content.activity.impl.duelarena.DuelArenaActivity, com.runehive.content.activity.impl.fightcaves.FightCaves, com.runehive.content.activity.impl.godwars.GodwarsActivity, com.runehive.content.activity.impl.JailActivity, com.runehive.content.activity.impl.kraken.KrakenActivity, com.runehive.content.activity.impl.magearena.MageArena, com.runehive.content.activity.impl.pestcontrol.PestControlGame.PestControlNode, com.runehive.content.activity.impl.recipefordisaster.RecipeForDisaster, com.runehive.content.activity.impl.VorkathActivity, com.runehive.content.activity.impl.warriorguild.WarriorGuild, com.runehive.content.activity.impl.zulrah.ZulrahActivity, com.runehive.content.activity.inferno.Inferno, com.runehive.content.activity.randomevent.RandomEvent, and com.runehive.game.action.impl.TutorialActivity.
Referenced by com.runehive.game.world.entity.mob.Mob.setActivity().
|
protected |
Reimplemented in com.runehive.game.action.impl.TutorialActivity.
Definition at line 298 of file Activity.java.
Referenced by onEvent().
|
protected |
Definition at line 286 of file Activity.java.
Referenced by onEvent().
|
protected |
Reimplemented in com.runehive.content.activity.impl.barrows.Barrows, com.runehive.content.activity.impl.VorkathActivity, com.runehive.content.activity.impl.warriorguild.WarriorGuild, com.runehive.content.activity.randomevent.impl.DrillDemonEvent, com.runehive.content.activity.randomevent.impl.GenieEvent, and com.runehive.content.activity.randomevent.impl.MimeEvent.
Definition at line 290 of file Activity.java.
Referenced by onEvent().
|
protected |
Reimplemented in com.runehive.content.activity.impl.barrows.Barrows, com.runehive.content.activity.impl.duelarena.DuelArenaActivity, com.runehive.content.activity.impl.godwars.GodwarsActivity, com.runehive.content.activity.impl.kraken.KrakenActivity, com.runehive.content.activity.impl.pestcontrol.PestControlGame, and com.runehive.content.activity.impl.warriorguild.WarriorGuild.
Definition at line 294 of file Activity.java.
Referenced by onEvent().
| void com.runehive.content.activity.Activity.cooldown | ( | int | cooldown | ) |
Applies a cooldown.
Reimplemented in com.runehive.game.action.impl.TutorialActivity.
Definition at line 244 of file Activity.java.
References cooldown.
| ActivityDeathType com.runehive.content.activity.Activity.deathType | ( | ) |
Reimplemented in com.runehive.content.activity.impl.barrows.Barrows, com.runehive.content.activity.impl.duelarena.DuelArenaActivity, com.runehive.content.activity.impl.fightcaves.FightCaves, com.runehive.content.activity.impl.magearena.MageArena, com.runehive.content.activity.impl.pestcontrol.PestControlGame, com.runehive.content.activity.impl.recipefordisaster.RecipeForDisaster, com.runehive.content.activity.impl.VorkathActivity, com.runehive.content.activity.impl.warriorguild.WarriorGuild, com.runehive.content.activity.impl.zulrah.ZulrahActivity, and com.runehive.content.activity.randomevent.RandomEvent.
Definition at line 263 of file Activity.java.
References com.runehive.content.activity.ActivityDeathType.NORMAL.
|
static |
Definition at line 74 of file Activity.java.
References com.runehive.game.world.entity.mob.Mob.activity.
Referenced by com.runehive.game.world.entity.combat.CombatUtil.canAttack(), com.runehive.game.world.entity.combat.CombatUtil.canBasicAttack(), com.runehive.game.world.entity.mob.player.Player.canLogout(), com.runehive.content.skill.impl.magic.spell.SpellCasting.cast(), com.runehive.content.skill.impl.magic.spell.SpellCasting.cast(), com.runehive.game.world.entity.combat.strategy.player.special.CombatSpecial.enable(), com.runehive.content.event.EventDispatcher.execute(), com.runehive.net.packet.in.WieldItemPacketListener.handlePacket(), com.runehive.game.world.entity.mob.player.Player.onStep(), com.runehive.content.skill.impl.magic.teleport.Teleportation.teleport(), com.runehive.game.task.impl.PlayerRemovalTask.tick(), com.runehive.game.world.entity.combat.strategy.basic.RangedStrategy< T extends Mob >.withinDistance(), and com.runehive.game.world.entity.mob.movement.waypoint.CombatWaypoint.withinDistance().
|
abstract |
Finishes the activity.
Reimplemented in com.runehive.content.activity.GroupActivity, com.runehive.content.activity.impl.barrows.Barrows, com.runehive.content.activity.impl.CerberusActivity, com.runehive.content.activity.impl.duelarena.DuelArenaActivity, com.runehive.content.activity.impl.fightcaves.FightCaves, com.runehive.content.activity.impl.godwars.GodwarsActivity, com.runehive.content.activity.impl.JailActivity, com.runehive.content.activity.impl.kraken.KrakenActivity, com.runehive.content.activity.impl.magearena.MageArena, com.runehive.content.activity.impl.pestcontrol.PestControlGame, com.runehive.content.activity.impl.pestcontrol.PestControlGame.PestControlNode, com.runehive.content.activity.impl.recipefordisaster.RecipeForDisaster, com.runehive.content.activity.impl.VorkathActivity, com.runehive.content.activity.impl.warriorguild.WarriorGuild, com.runehive.content.activity.impl.zulrah.ZulrahActivity, com.runehive.content.activity.inferno.Inferno, com.runehive.content.activity.randomevent.RandomEvent, and com.runehive.game.action.impl.TutorialActivity.
Referenced by onDeath(), and sequence().
|
protected |
Sets the cooldown flag to FINISH.
Definition at line 249 of file Activity.java.
Referenced by com.runehive.content.activity.randomevent.impl.DrillDemonEvent.clickNpc(), com.runehive.content.activity.randomevent.impl.GenieEvent.clickNpc(), com.runehive.content.activity.randomevent.impl.MimeEvent.clickNpc(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.clickObject(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.onDeath(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.onLogout(), com.runehive.content.activity.randomevent.RandomEvent.onRegionChange(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.sequence(), com.runehive.content.activity.impl.pestcontrol.PestControlGame.sequence(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.start(), and com.runehive.content.activity.impl.recipefordisaster.RecipeForDisaster.start().
|
static |
Definition at line 78 of file Activity.java.
References com.runehive.game.world.entity.mob.Mob.activity.
Referenced by com.runehive.game.world.entity.mob.npc.Npc.appendDeath(), com.runehive.game.world.entity.mob.player.Player.loadRegion(), com.runehive.game.world.entity.mob.player.PlayerDeath.postDeath(), com.runehive.game.world.entity.mob.player.PlayerAssistant.sequence(), and com.runehive.game.world.entity.mob.player.Player.unregister().
| int com.runehive.content.activity.Activity.getInstance | ( | ) |
Gets this activity's instance level.
Definition at line 268 of file Activity.java.
References instance.
Referenced by com.runehive.content.activity.impl.magearena.MageArena.meteors(), and com.runehive.content.activity.impl.magearena.MageArena.start().
|
protected |
Gets an Optional of the ActivityListener for this activity.
Reimplemented in com.runehive.content.activity.impl.duelarena.DuelArenaActivity, com.runehive.content.activity.impl.fightcaves.FightCaves, com.runehive.content.activity.impl.godwars.GodwarsActivity, com.runehive.content.activity.impl.kraken.KrakenActivity, com.runehive.content.activity.impl.pestcontrol.PestControlGame, com.runehive.content.activity.impl.warriorguild.WarriorGuild, com.runehive.content.activity.impl.zulrah.ZulrahActivity, and com.runehive.content.activity.inferno.Inferno.
Definition at line 282 of file Activity.java.
Referenced by add(), and remove().
| Optional< Activity_Panel > com.runehive.content.activity.Activity.getPanel | ( | ) |
Gets an optional of the activity panel.
Definition at line 183 of file Activity.java.
References panel.
Referenced by com.runehive.content.activity.impl.pestcontrol.PestControlGame.PestControlNode.finish().
| int com.runehive.content.activity.Activity.getTicks | ( | ) |
Gets the current ticks.
Definition at line 277 of file Activity.java.
References ticks.
Referenced by com.runehive.content.activity.impl.pestcontrol.PestControlGame.finished(), com.runehive.content.activity.lobby.LobbyNode.finished(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.sequence(), com.runehive.content.activity.impl.pestcontrol.PestControlGame.sequence(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.update(), and com.runehive.content.activity.impl.pestcontrol.PestControlGame.PestControlPanel.update().
|
abstract |
Reimplemented in com.runehive.content.activity.impl.barrows.Barrows, com.runehive.content.activity.impl.CerberusActivity, com.runehive.content.activity.impl.duelarena.DuelArenaActivity, com.runehive.content.activity.impl.fightcaves.FightCaves, com.runehive.content.activity.impl.godwars.GodwarsActivity, com.runehive.content.activity.impl.JailActivity, com.runehive.content.activity.impl.kraken.KrakenActivity, com.runehive.content.activity.impl.magearena.MageArena, com.runehive.content.activity.impl.pestcontrol.PestControlGame, com.runehive.content.activity.impl.pestcontrol.PestControlGame.PestControlNode, com.runehive.content.activity.impl.recipefordisaster.RecipeForDisaster, com.runehive.content.activity.impl.VorkathActivity, com.runehive.content.activity.impl.warriorguild.WarriorGuild, com.runehive.content.activity.impl.zulrah.ZulrahActivity, com.runehive.content.activity.inferno.Inferno, com.runehive.content.activity.randomevent.RandomEvent, and com.runehive.game.action.impl.TutorialActivity.
|
protected |
Checks if the cooldown is paused.
Definition at line 259 of file Activity.java.
Referenced by com.runehive.content.activity.impl.duelarena.DuelArenaActivity.sequence(), and com.runehive.content.activity.impl.duelarena.DuelArenaActivity.update().
|
protected |
Definition at line 314 of file Activity.java.
Referenced by onEvent().
| void com.runehive.content.activity.Activity.onDeath | ( | Mob | mob | ) |
Called when the player die.
Reimplemented in com.runehive.content.activity.impl.barrows.Barrows, com.runehive.content.activity.impl.CerberusActivity, com.runehive.content.activity.impl.duelarena.DuelArenaActivity, com.runehive.content.activity.impl.fightcaves.FightCaves, com.runehive.content.activity.impl.godwars.GodwarsActivity, com.runehive.content.activity.impl.JailActivity, com.runehive.content.activity.impl.kraken.KrakenActivity, com.runehive.content.activity.impl.magearena.MageArena, com.runehive.content.activity.impl.pestcontrol.PestControlGame, com.runehive.content.activity.impl.recipefordisaster.RecipeForDisaster, com.runehive.content.activity.impl.VorkathActivity, com.runehive.content.activity.impl.warriorguild.WarriorGuild, and com.runehive.content.activity.impl.zulrah.ZulrahActivity.
Definition at line 157 of file Activity.java.
References com.runehive.Config.DEFAULT_POSITION, finish(), com.runehive.game.world.entity.mob.Mob.getNpc(), com.runehive.game.world.entity.mob.Mob.isNpc(), com.runehive.game.world.entity.mob.Mob.move(), com.runehive.game.world.World.schedule(), com.runehive.game.world.entity.mob.Mob.unpoison(), and com.runehive.game.world.entity.mob.Mob.unvenom().
| boolean com.runehive.content.activity.Activity.onEvent | ( | Player | player, |
| InteractionEvent | interactionEvent ) |
Implements com.runehive.content.event.InteractionEventListener.
Definition at line 319 of file Activity.java.
References com.runehive.content.event.InteractionEvent.InteractionType.CLICK_BUTTON, clickButton(), clickItem(), clickNpc(), clickObject(), com.runehive.content.event.EventDispatcher.dispatch(), com.runehive.content.event.InteractionEvent.InteractionType.FIRST_CLICK_NPC, com.runehive.content.event.InteractionEvent.InteractionType.FIRST_CLICK_OBJECT, com.runehive.content.event.InteractionEvent.InteractionType.FIRST_ITEM_CLICK, com.runehive.content.event.InteractionEvent.isHandled(), com.runehive.content.event.InteractionEvent.InteractionType.ITEM_CONTAINER_INTERACTION_EVENT, com.runehive.content.event.InteractionEvent.InteractionType.ITEM_ON_ITEM, com.runehive.content.event.InteractionEvent.InteractionType.ITEM_ON_OBJECT, itemContainerAction(), com.runehive.content.event.InteractionEvent.InteractionType.PICKUP_ITEM, pickupItem(), com.runehive.content.event.InteractionEvent.InteractionType.SECOND_CLICK_NPC, com.runehive.content.event.InteractionEvent.InteractionType.SECOND_CLICK_OBJECT, com.runehive.content.event.InteractionEvent.InteractionType.SECOND_ITEM_CLICK, com.runehive.content.event.InteractionEvent.InteractionType.THIRD_CLICK_OBJECT, com.runehive.content.event.InteractionEvent.InteractionType.THIRD_ITEM_CLICK, and useItem().
| void com.runehive.content.activity.Activity.onLogout | ( | Player | player | ) |
Called when the player logs out.
Reimplemented in com.runehive.content.activity.impl.barrows.Barrows, com.runehive.content.activity.impl.CerberusActivity, com.runehive.content.activity.impl.duelarena.DuelArenaActivity, com.runehive.content.activity.impl.fightcaves.FightCaves, com.runehive.content.activity.impl.kraken.KrakenActivity, com.runehive.content.activity.impl.magearena.MageArena, com.runehive.content.activity.impl.pestcontrol.PestControlGame, com.runehive.content.activity.impl.recipefordisaster.RecipeForDisaster, com.runehive.content.activity.impl.VorkathActivity, com.runehive.content.activity.impl.warriorguild.WarriorGuild, com.runehive.content.activity.inferno.Inferno, com.runehive.content.activity.randomevent.RandomEvent, and com.runehive.game.action.impl.TutorialActivity.
Definition at line 152 of file Activity.java.
| void com.runehive.content.activity.Activity.onRegionChange | ( | Player | player | ) |
Called when the player changes region.
Reimplemented in com.runehive.content.activity.impl.barrows.Barrows, com.runehive.content.activity.impl.CerberusActivity, com.runehive.content.activity.impl.fightcaves.FightCaves, com.runehive.content.activity.impl.godwars.GodwarsActivity, com.runehive.content.activity.impl.JailActivity, com.runehive.content.activity.impl.kraken.KrakenActivity, com.runehive.content.activity.impl.magearena.MageArena, com.runehive.content.activity.impl.pestcontrol.PestControlGame, com.runehive.content.activity.impl.recipefordisaster.RecipeForDisaster, com.runehive.content.activity.impl.VorkathActivity, com.runehive.content.activity.impl.warriorguild.WarriorGuild, com.runehive.content.activity.impl.zulrah.ZulrahActivity, com.runehive.content.activity.inferno.Inferno, com.runehive.content.activity.randomevent.RandomEvent, and com.runehive.game.action.impl.TutorialActivity.
Definition at line 188 of file Activity.java.
| boolean com.runehive.content.activity.Activity.onStep | ( | Mob | mob | ) |
Definition at line 173 of file Activity.java.
|
protected |
Sets the cooldown flag to PAUSE.
Definition at line 254 of file Activity.java.
Referenced by com.runehive.content.activity.impl.duelarena.DuelArenaActivity.create(), setPause(), com.runehive.content.activity.impl.CerberusActivity.start(), com.runehive.content.activity.impl.fightcaves.FightCaves.start(), com.runehive.content.activity.impl.godwars.GodwarsActivity.start(), com.runehive.content.activity.impl.kraken.KrakenActivity.start(), com.runehive.content.activity.impl.recipefordisaster.RecipeForDisaster.start(), com.runehive.content.activity.inferno.Inferno.start(), and com.runehive.game.action.impl.TutorialActivity.start().
|
protected |
Reimplemented in com.runehive.content.activity.impl.warriorguild.WarriorGuild.
Definition at line 306 of file Activity.java.
Referenced by onEvent().
| void com.runehive.content.activity.Activity.remove | ( | Mob | mob | ) |
Removes a mob from the activity.
Reimplemented in com.runehive.content.activity.impl.kraken.KrakenActivity.
Definition at line 210 of file Activity.java.
References com.runehive.game.world.entity.Entity.DEFAULT_INSTANCE, getListener(), com.runehive.game.Animation.RESET, and com.runehive.game.Graphic.RESET.
| void com.runehive.content.activity.Activity.removeAll | ( | Mob... | mobs | ) |
Removes all mobs from the activity.
Definition at line 225 of file Activity.java.
Referenced by com.runehive.content.activity.impl.duelarena.DuelArenaActivity.canDrinkPotions(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.canEat(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.canEquipItem(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.canLogout(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.canUsePrayer(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.canUseSpecial(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.clickObject(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.finish(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.onDeath(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.onLogout(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.sequence(), and com.runehive.content.activity.impl.duelarena.DuelArenaActivity.unequipItems().
|
protected |
Resets the remaining ticks to the cached cooldown ticks.
Definition at line 239 of file Activity.java.
References cooldown.
Referenced by com.runehive.content.activity.impl.fightcaves.FightCaves.create(), com.runehive.content.activity.impl.recipefordisaster.RecipeForDisaster.create(), com.runehive.content.activity.inferno.Inferno.create(), com.runehive.content.activity.impl.fightcaves.FightCaves.handleDeath(), com.runehive.content.activity.inferno.Inferno.handleDeath(), com.runehive.content.activity.impl.magearena.MageArena.onDeath(), com.runehive.content.activity.impl.recipefordisaster.RecipeForDisaster.onDeath(), com.runehive.content.activity.impl.magearena.MageArena.start(), and com.runehive.content.activity.randomevent.RandomEvent.start().
|
protected |
Definition at line 169 of file Activity.java.
References com.runehive.game.world.World.schedule().
Referenced by com.runehive.content.activity.impl.VorkathActivity.finish().
|
static |
Definition at line 60 of file Activity.java.
References Activity(), and com.runehive.game.world.entity.mob.Mob.activity.
Referenced by com.runehive.game.world.entity.combat.strategy.player.PlayerMeleeStrategy.canAttack(), com.runehive.content.activity.impl.duelarena.DuelRule.canSet(), com.runehive.content.activity.impl.duelarena.DuelRule.set(), com.runehive.game.world.entity.mob.player.exchange.duel.StakeSession.showDuelRulesOnSecondScreen(), com.runehive.game.task.impl.PlayerRemovalTask.tick(), and com.runehive.content.activity.impl.duelarena.DuelRule.validateEquipmentRules().
| void com.runehive.content.activity.Activity.sequence | ( | ) |
Sequences the activity.
Reimplemented in com.runehive.content.activity.impl.duelarena.DuelArenaActivity, com.runehive.content.activity.impl.pestcontrol.PestControlGame, and com.runehive.content.activity.impl.warriorguild.WarriorGuild.
Definition at line 119 of file Activity.java.
References FINISH, finish(), PAUSE, START, start(), ticks, and update().
Referenced by com.runehive.content.activity.lobby.LobbyManager.sequenceActive().
| void com.runehive.content.activity.Activity.setInstance | ( | int | instance | ) |
Definition at line 272 of file Activity.java.
References instance.
Referenced by com.runehive.content.activity.impl.pestcontrol.PestControlGame.PestControlGame(), and com.runehive.game.action.impl.TutorialActivity.start().
| void com.runehive.content.activity.Activity.setPanel | ( | Activity_Panel | panel | ) |
Sets the activity panel.
Definition at line 178 of file Activity.java.
References panel.
| void com.runehive.content.activity.Activity.setPause | ( | boolean | pause | ) |
|
abstractprotected |
Starts the next activity stage.
Reimplemented in com.runehive.content.activity.GroupActivity, com.runehive.content.activity.impl.barrows.Barrows, com.runehive.content.activity.impl.CerberusActivity, com.runehive.content.activity.impl.duelarena.DuelArenaActivity, com.runehive.content.activity.impl.fightcaves.FightCaves, com.runehive.content.activity.impl.godwars.GodwarsActivity, com.runehive.content.activity.impl.JailActivity, com.runehive.content.activity.impl.kraken.KrakenActivity, com.runehive.content.activity.impl.magearena.MageArena, com.runehive.content.activity.impl.pestcontrol.PestControlGame.PestControlNode, com.runehive.content.activity.impl.recipefordisaster.RecipeForDisaster, com.runehive.content.activity.impl.VorkathActivity, com.runehive.content.activity.impl.warriorguild.WarriorGuild, com.runehive.content.activity.impl.zulrah.ZulrahActivity, com.runehive.content.activity.inferno.Inferno, com.runehive.content.activity.lobby.LobbyNode, com.runehive.content.activity.randomevent.RandomEvent, and com.runehive.game.action.impl.TutorialActivity.
Referenced by sequence(), and com.runehive.content.activity.GroupActivity.start().
| void com.runehive.content.activity.Activity.update | ( | ) |
The update method.
Reimplemented in com.runehive.content.activity.impl.barrows.Barrows, com.runehive.content.activity.impl.duelarena.DuelArenaActivity, com.runehive.content.activity.impl.fightcaves.FightCaves, com.runehive.content.activity.impl.godwars.GodwarsActivity, com.runehive.content.activity.impl.magearena.MageArena, com.runehive.content.activity.impl.recipefordisaster.RecipeForDisaster, com.runehive.content.activity.impl.warriorguild.WarriorGuild, and com.runehive.content.activity.inferno.Inferno.
Definition at line 145 of file Activity.java.
Referenced by com.runehive.game.action.impl.TutorialActivity.next(), sequence(), and com.runehive.game.action.impl.TutorialActivity.start().
|
protected |
Definition at line 302 of file Activity.java.
Referenced by onEvent().
|
protected |
Reimplemented in com.runehive.content.activity.impl.warriorguild.WarriorGuild.
Definition at line 310 of file Activity.java.
|
private |
The sequencing cooldown.
Definition at line 43 of file Activity.java.
Referenced by Activity(), com.runehive.content.activity.lobby.LobbyManager.canStart(), cooldown(), com.runehive.content.activity.GroupActivity.GroupActivity(), com.runehive.game.action.impl.TutorialActivity.next(), com.runehive.content.activity.impl.magearena.MageArena.onDeath(), com.runehive.content.activity.randomevent.RandomEvent.RandomEvent(), resetCooldown(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.sequence(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.start(), com.runehive.content.activity.impl.magearena.MageArena.start(), com.runehive.content.activity.lobby.LobbyNode.start(), com.runehive.content.activity.randomevent.RandomEvent.start(), and com.runehive.game.action.impl.TutorialActivity.start().
|
staticprotected |
The 'finish' cooldown id.
Definition at line 37 of file Activity.java.
Referenced by finishCooldown(), com.runehive.content.activity.impl.pestcontrol.PestControlGame.finished(), com.runehive.content.activity.lobby.LobbyNode.finished(), sequence(), com.runehive.content.activity.impl.magearena.MageArena.start(), and com.runehive.content.activity.impl.duelarena.DuelArenaActivity.update().
|
private |
The activity instance level.
Definition at line 46 of file Activity.java.
Referenced by Activity(), add(), com.runehive.content.activity.impl.CerberusActivity.CerberusActivity(), com.runehive.content.activity.impl.fightcaves.FightCaves.FightCaves(), getInstance(), com.runehive.content.activity.inferno.Inferno.Inferno(), com.runehive.content.activity.impl.kraken.KrakenActivity.KrakenActivity(), com.runehive.content.activity.impl.magearena.MageArena.MageArena(), com.runehive.content.activity.impl.recipefordisaster.RecipeForDisaster.RecipeForDisaster(), setInstance(), com.runehive.content.activity.impl.VorkathActivity.VorkathActivity(), and com.runehive.content.activity.impl.zulrah.ZulrahActivity.ZulrahActivity().
|
private |
The panel for this activity.
Definition at line 52 of file Activity.java.
Referenced by com.runehive.content.activity.impl.pestcontrol.PestControlGame.createActivity(), getPanel(), com.runehive.content.activity.impl.pestcontrol.PestControlGame.sequence(), and setPanel().
|
staticprotected |
The 'pause' cooldown id.
Definition at line 40 of file Activity.java.
Referenced by isPaused(), pause(), sequence(), and setPause().
|
staticprotected |
The 'start' cooldown id.
Definition at line 34 of file Activity.java.
Referenced by sequence(), and setPause().
|
private |
The remaining game ticks.
Definition at line 49 of file Activity.java.
Referenced by finishCooldown(), getTicks(), isPaused(), pause(), sequence(), and setPause().