1package com.runehive.content.activity.impl.recipefordisaster;
3import com.runehive.content.activity.Activity;
4import com.runehive.content.activity.ActivityDeathType;
5import com.runehive.content.activity.ActivityType;
6import com.runehive.content.activity.panel.ActivityPanel;
7import com.runehive.game.Animation;
8import com.runehive.game.Graphic;
9import com.runehive.game.world.World;
10import com.runehive.game.world.entity.mob.Mob;
11import com.runehive.game.world.entity.mob.npc.Npc;
12import com.runehive.game.world.entity.mob.npc.NpcDeath;
13import com.runehive.game.world.entity.mob.player.Player;
14import com.runehive.game.world.items.Item;
15import com.runehive.game.world.items.ground.GroundItem;
16import com.runehive.game.world.position.Area;
17import com.runehive.game.world.position.Position;
18import com.runehive.net.packet.out.SendEntityHintArrow;
19import com.runehive.net.packet.out.SendMessage;
20import com.runehive.util.RandomUtils;
21import com.runehive.util.Utility;
52 player.message(
"Ice gloves have been dropped for you to fight Flambleed!");
54 player.playerAssistant.restore();
68 int display = 7453 +
wave.gloves;
79 if (
player.locking.locked()) {
103 reward =
wave.gloves;
106 if (reward >
player.glovesTier) {
107 player.glovesTier = reward;
110 player.dialogueFactory.sendNpcChat(6526,
"You have been rewarded for your efforts.",
"Check my store to see your available gloves.").execute();
138 player.message(
"You can not use prayers here!");
Activity(int cooldown, int instance)
Constructs a new SequencedMinigame object.
final void resetCooldown()
Resets the remaining ticks to the cached cooldown ticks.
int instance
The activity instance level.
final void pause()
Sets the cooldown flag to PAUSE.
void add(Mob mob)
Adds a mob to the activity.
final void finishCooldown()
Sets the cooldown flag to FINISH.
void onLogout(Player player)
Called when the player logs out.
void cleanup()
Cleans up the activity when finished.
static RecipeForDisaster create(Player player)
Handles creating a recipe for disaster activity.
Npc monster
The boss monster instance of this activity.
boolean canUsePrayer(Player player)
void start()
Starts the next activity stage.
boolean canTeleport(Player player)
Called when the player attempts to teleport.
void onRegionChange(Player player)
Called when the player changes region.
void onDeath(Mob mob)
Called when the player die.
void update()
The update method.
ActivityDeathType deathType()
RecipeForDisaster(Player player, int instance)
Constructs a new SequencedMinigame object.
void finish()
Finishes the activity.
final Player player
The player instance of this activity.
RecipeForDisasterData wave
The current wave of this activity.
Handles the activity panel.
static void update(Player player, int amount, String title, String footer, String... strings)
Sends all the information for the activity panel.
static void clear(Player player)
Clears the activity panel.
Class that models a single animation used by an entity.
static final Animation RESET
Represents a single graphic that can be used by entities.
static final Graphic RESET
Represents the game world.
static void schedule(Task task)
Submits a new event.
void animate(int animation)
void move(Position position)
Moves the mob to a set position.
final boolean isNpc()
Check if an entity is an npc.
final boolean isPlayer()
Check if an entity is a player.
Optional< Graphic > graphic
Represents a non-player character in the in-game world.
This class represents a character controlled by a player.
The container class that represents an item that can be interacted with.
Represents a single Ground item on the world map.
static GroundItem create(Player player, Item item)
Creates a new GroundItem object for a player and an item.
Handles checking if mobs are in a certain area.
static boolean inRFD(Interactable entity)
Represents a single tile on the game world.
The OutgoingPacket that sends a message to a Players chatbox in the client.
A static-util class that provides additional functionality for generating pseudo-random numbers.
static< T > T random(T[] array)
Pseudo-randomly retrieves a element from array.
Handles miscellaneous methods.
static double getPercentageAmount(int progress, int total)
Gets a percentage amount.
static Position[] getInnerBoundaries(Position position, int width, int length)
static String getTime()
Gets the current server time and formats it.
Created by Daniel on 2018-01-28.
Holds all activity types that are timed.
Holds the recipe for disaster activity data.