RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.activity.Activity Class Referenceabstract

A Activity object constructs an in-game activity and sequences it through the start() and finish() methods with a
cooldown
set in game ticks. More...

Inheritance diagram for com.runehive.content.activity.Activity:
Collaboration diagram for com.runehive.content.activity.Activity:

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_PanelgetPanel ()
 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.

Detailed Description

A Activity object constructs an in-game activity and sequences it through the start() and finish() methods with a
cooldown
set in game ticks.

Author
Michael | Chex

Definition at line 31 of file Activity.java.

Constructor & Destructor Documentation

◆ Activity()

com.runehive.content.activity.Activity.Activity ( int cooldown,
int instance )

Constructs a new SequencedMinigame object.

Definition at line 55 of file Activity.java.

55 {
56 this.instance = instance;
57 this.cooldown = cooldown;
58 }

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().

Here is the caller graph for this function:

Member Function Documentation

◆ add()

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.

198 {
199 if (mob.isNpc() && !mob.isRegistered()) {
200 mob.register();
201 mob.unpoison();
202 mob.unvenom();
203 }
204 mob.setActivity(this);
205 mob.instance = instance;
206 getListener().ifPresent(mob.getCombat()::addListener);
207 }
abstract void register()
Registers an entity to the World.
abstract Combat<? extends Mob > getCombat()
The combat of the mob.
final boolean isNpc()
Check if an entity is an npc.
Definition Mob.java:550
void setActivity(Activity activity)
Definition Mob.java:526

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ canDrinkPotions()

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.

106 {
107 return true;
108 }

◆ canEat()

boolean com.runehive.content.activity.Activity.canEat ( Player player,
FoodData foodType )

Reimplemented in com.runehive.content.activity.impl.duelarena.DuelArenaActivity.

Definition at line 94 of file Activity.java.

94 {
95 return true;
96 }

◆ canEquipItem()

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.

90 {
91 return true;
92 }

◆ canLogout()

boolean com.runehive.content.activity.Activity.canLogout ( Player player)

◆ canSpellCast()

boolean com.runehive.content.activity.Activity.canSpellCast ( Player player)

Definition at line 114 of file Activity.java.

114 {
115 return true;
116 }

◆ canTeleport()

◆ canUsePrayer()

boolean com.runehive.content.activity.Activity.canUsePrayer ( Player player)

◆ canUseSpecial()

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.

98 {
99 return true;
100 }

◆ cleanup()

◆ clickButton()

boolean com.runehive.content.activity.Activity.clickButton ( Player player,
ClickButtonInteractionEvent event )
protected

Reimplemented in com.runehive.game.action.impl.TutorialActivity.

Definition at line 298 of file Activity.java.

298 {
299 return false;
300 }

Referenced by onEvent().

Here is the caller graph for this function:

◆ clickItem()

boolean com.runehive.content.activity.Activity.clickItem ( Player player,
ItemInteractionEvent event )
protected

Definition at line 286 of file Activity.java.

286 {
287 return false;
288 }

Referenced by onEvent().

Here is the caller graph for this function:

◆ clickNpc()

boolean com.runehive.content.activity.Activity.clickNpc ( Player player,
NpcInteractionEvent event )
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.

290 {
291 return false;
292 }

Referenced by onEvent().

Here is the caller graph for this function:

◆ clickObject()

boolean com.runehive.content.activity.Activity.clickObject ( Player player,
ObjectInteractionEvent event )
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.

294 {
295 return false;
296 }

Referenced by onEvent().

Here is the caller graph for this function:

◆ cooldown()

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.

244 {
245 this.ticks = cooldown;
246 }

References cooldown.

◆ deathType()

◆ evaluate()

◆ finish()

◆ finishCooldown()

◆ forActivity()

void com.runehive.content.activity.Activity.forActivity ( Mob mob,
Consumer< Activity > consumer )
static

Definition at line 78 of file Activity.java.

78 {
79 if (mob == null) {
80 return;
81 }
82
83 if (mob.activity == null) {
84 return;
85 }
86
87 consumer.accept(mob.activity);
88 }

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().

Here is the caller graph for this function:

◆ getInstance()

int com.runehive.content.activity.Activity.getInstance ( )

Gets this activity's instance level.

Definition at line 268 of file Activity.java.

268 {
269 return instance;
270 }

References instance.

Referenced by com.runehive.content.activity.impl.magearena.MageArena.meteors(), and com.runehive.content.activity.impl.magearena.MageArena.start().

Here is the caller graph for this function:

◆ getListener()

Optional<? extends ActivityListener<? extends Activity > > com.runehive.content.activity.Activity.getListener ( )
protected

◆ getPanel()

Optional< Activity_Panel > com.runehive.content.activity.Activity.getPanel ( )

Gets an optional of the activity panel.

Definition at line 183 of file Activity.java.

183 {
184 return Optional.ofNullable(panel);
185 }

References panel.

Referenced by com.runehive.content.activity.impl.pestcontrol.PestControlGame.PestControlNode.finish().

Here is the caller graph for this function:

◆ getTicks()

int com.runehive.content.activity.Activity.getTicks ( )

◆ getType()

◆ isPaused()

final boolean com.runehive.content.activity.Activity.isPaused ( )
protected

Checks if the cooldown is paused.

Definition at line 259 of file Activity.java.

259 {
260 return ticks == PAUSE;
261 }

References PAUSE, and ticks.

Referenced by com.runehive.content.activity.impl.duelarena.DuelArenaActivity.sequence(), and com.runehive.content.activity.impl.duelarena.DuelArenaActivity.update().

Here is the caller graph for this function:

◆ itemContainerAction()

boolean com.runehive.content.activity.Activity.itemContainerAction ( Player player,
ItemContainerInteractionEvent event )
protected

Definition at line 314 of file Activity.java.

314 {
315 return false;
316 }

Referenced by onEvent().

Here is the caller graph for this function:

◆ onDeath()

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.

157 {
158 if (mob.isNpc()) {
159 World.schedule(new NpcDeath(mob.getNpc()));
160 return;
161 }
162 remove(mob);
163 mob.move(Config.DEFAULT_POSITION);
164 mob.unpoison();
165 mob.unvenom();
166 finish();
167 }
void move(Position position)
Moves the mob to a set position.
Definition Mob.java:340

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().

Here is the call graph for this function:

◆ onEvent()

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.

319 {
320 final EventDispatcher dispatcher = new EventDispatcher(interactionEvent);
321 dispatcher.dispatch(InteractionEvent.InteractionType.CLICK_BUTTON, e -> clickButton(player, (ClickButtonInteractionEvent) e));
322 dispatcher.dispatch(InteractionEvent.InteractionType.ITEM_ON_ITEM, e -> useItem(player, (ItemOnItemInteractionEvent) e));
323 dispatcher.dispatch(InteractionEvent.InteractionType.ITEM_ON_OBJECT, e -> useItem(player, (ItemOnObjectInteractionEvent) e));
324 dispatcher.dispatch(InteractionEvent.InteractionType.FIRST_ITEM_CLICK, e -> clickItem(player, (FirstItemClickInteractionEvent) e));
325 dispatcher.dispatch(InteractionEvent.InteractionType.SECOND_ITEM_CLICK, e -> clickItem(player, (SecondItemClickInteractionEvent) e));
326 dispatcher.dispatch(InteractionEvent.InteractionType.THIRD_ITEM_CLICK, e -> clickItem(player, (ThirdItemClickInteractionEvent) e));
327// dispatcher.dispatch(InteractionType.FOURTH_ITEM_CLICK, e -> clickItem(player, (FourthItemClick) e));
328 dispatcher.dispatch(InteractionEvent.InteractionType.FIRST_CLICK_NPC, e -> clickNpc(player, (FirstNpcClick) e));
329 dispatcher.dispatch(InteractionEvent.InteractionType.SECOND_CLICK_NPC, e -> clickNpc(player, (SecondNpcClick) e));
330// dispatcher.dispatch(InteractionType.CLICK_NPC, e -> clickNpc(player, (ThirdNpcClick) e));
331// dispatcher.dispatch(InteractionType.CLICK_NPC, e -> clickNpc(player, (FourthNpcClick) e));
332 dispatcher.dispatch(InteractionEvent.InteractionType.FIRST_CLICK_OBJECT, e -> clickObject(player, (FirstObjectClick) e));
333 dispatcher.dispatch(InteractionEvent.InteractionType.SECOND_CLICK_OBJECT, e -> clickObject(player, (SecondObjectClick) e));
334 dispatcher.dispatch(InteractionEvent.InteractionType.THIRD_CLICK_OBJECT, e -> clickObject(player, (ThirdObjectClick) e));
335 dispatcher.dispatch(InteractionEvent.InteractionType.PICKUP_ITEM, e -> pickupItem(player, (PickupItemInteractionEvent) e));
336 dispatcher.dispatch(InteractionEvent.InteractionType.ITEM_CONTAINER_INTERACTION_EVENT, e -> itemContainerAction(player, (ItemContainerInteractionEvent) e));
337 return interactionEvent.isHandled();
338 }

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().

Here is the call graph for this function:

◆ onLogout()

◆ onRegionChange()

◆ onStep()

boolean com.runehive.content.activity.Activity.onStep ( Mob mob)

Definition at line 173 of file Activity.java.

173 {
174 return false;
175 }

◆ pause()

◆ pickupItem()

boolean com.runehive.content.activity.Activity.pickupItem ( Player player,
PickupItemInteractionEvent event )
protected

Reimplemented in com.runehive.content.activity.impl.warriorguild.WarriorGuild.

Definition at line 306 of file Activity.java.

306 {
307 return false;
308 }

Referenced by onEvent().

Here is the caller graph for this function:

◆ remove()

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.

210 {
211 getListener().ifPresent(mob.getCombat()::removeListener);
212
213 if (mob.isNpc()) {
214 mob.getNpc().unregister();
215 } else {
216 mob.instance = Entity.DEFAULT_INSTANCE;
217 mob.getPlayer().setActivity(null);
218 mob.getPlayer().graphic(Graphic.RESET, true);
219 mob.getPlayer().animate(Animation.RESET, true);
220 // mob.getPlayer().send(new SendMessage("You have lost your current progress as you have teleported."));
221 }
222 }
Optional< Graphic > graphic
Definition Mob.java:91
void unregister()
Unregisters an entity from the World.
Definition Npc.java:126

References com.runehive.game.world.entity.Entity.DEFAULT_INSTANCE, getListener(), com.runehive.game.Animation.RESET, and com.runehive.game.Graphic.RESET.

Here is the call graph for this function:

◆ removeAll()

◆ resetCooldown()

◆ restart()

void com.runehive.content.activity.Activity.restart ( int delay,
Runnable runnable )
protected

Definition at line 169 of file Activity.java.

169 {
170 World.schedule(delay, runnable::run); //deprecated lambda
171 }

References com.runehive.game.world.World.schedule().

Referenced by com.runehive.content.activity.impl.VorkathActivity.finish().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ search()

static< T extends Activity > Optional< T > com.runehive.content.activity.Activity.search ( Player player,
Class< T > clazz )
static

Definition at line 60 of file Activity.java.

60 {
61 final Activity activity = player.activity;
62
63 if (activity == null) {
64 return Optional.empty();
65 }
66
67 if (clazz.isInstance(activity)) {
68 return Optional.of(clazz.cast(activity));
69 }
70
71 return Optional.empty();
72 }

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sequence()

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.

119 {
120 update();
121
122 if (ticks == PAUSE) {
123 return;
124 }
125
126 if (ticks > 0) {
127 ticks--;
128 } else if (ticks == START) {
129 start();
130 } else if (ticks == FINISH) {
131 finish();
132 }
133 }

References FINISH, finish(), PAUSE, START, start(), ticks, and update().

Referenced by com.runehive.content.activity.lobby.LobbyManager.sequenceActive().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setInstance()

void com.runehive.content.activity.Activity.setInstance ( int instance)

Definition at line 272 of file Activity.java.

272 {
273 this.instance = instance;
274 }

References instance.

Referenced by com.runehive.content.activity.impl.pestcontrol.PestControlGame.PestControlGame(), and com.runehive.game.action.impl.TutorialActivity.start().

Here is the caller graph for this function:

◆ setPanel()

void com.runehive.content.activity.Activity.setPanel ( Activity_Panel panel)

Sets the activity panel.

Definition at line 178 of file Activity.java.

178 {
179 this.panel = panel;
180 }

References panel.

◆ setPause()

void com.runehive.content.activity.Activity.setPause ( boolean pause)

Sets the pause state of the activity.

Definition at line 234 of file Activity.java.

234 {
235 ticks = pause ? PAUSE : START;
236 }

References PAUSE, pause(), START, and ticks.

Here is the call graph for this function:

◆ start()

◆ update()

◆ useItem() [1/2]

boolean com.runehive.content.activity.Activity.useItem ( Player player,
ItemOnItemInteractionEvent event )
protected

Definition at line 302 of file Activity.java.

302 {
303 return false;
304 }

Referenced by onEvent().

Here is the caller graph for this function:

◆ useItem() [2/2]

boolean com.runehive.content.activity.Activity.useItem ( Player player,
ItemOnObjectInteractionEvent event )
protected

Reimplemented in com.runehive.content.activity.impl.warriorguild.WarriorGuild.

Definition at line 310 of file Activity.java.

310 {
311 return false;
312 }

Member Data Documentation

◆ cooldown

◆ FINISH

◆ instance

◆ panel

Activity_Panel com.runehive.content.activity.Activity.panel
private

◆ PAUSE

final int com.runehive.content.activity.Activity.PAUSE = -2
staticprotected

The 'pause' cooldown id.

Definition at line 40 of file Activity.java.

Referenced by isPaused(), pause(), sequence(), and setPause().

◆ START

final int com.runehive.content.activity.Activity.START = 0
staticprotected

The 'start' cooldown id.

Definition at line 34 of file Activity.java.

Referenced by sequence(), and setPause().

◆ ticks

int com.runehive.content.activity.Activity.ticks
private

The remaining game ticks.

Definition at line 49 of file Activity.java.

Referenced by finishCooldown(), getTicks(), isPaused(), pause(), sequence(), and setPause().


The documentation for this class was generated from the following file: