1package com.runehive.content.skill.impl.slayer;
3import com.runehive.game.world.entity.mob.npc.definition.NpcDefinition;
4import com.runehive.game.world.entity.mob.player.Player;
5import com.runehive.game.world.entity.skill.Skill;
6import com.runehive.game.world.position.Position;
7import com.runehive.util.Utility;
9import java.util.ArrayList;
20 public boolean canAssign(
Player player) {
27 public boolean canAssign(
Player player) {
34 public boolean canAssign(
Player player) {
41 public boolean canAssign(
Player player) {
48 public boolean canAssign(
Player player) {
55 public boolean canAssign(
Player player) {
62 public boolean canAssign(
Player player) {
68 public boolean canAssign(
Player player) {
74 public boolean canAssign(
Player player) {
81 public boolean canAssign(
Player player) {
88 public boolean canAssign(
Player player) {
95 public boolean canAssign(
Player player) {
101 public boolean canAssign(
Player player) {
107 public boolean canAssign(
Player player) {
111 DAGANNOTHS(
new String[]{
"Dagannoth",
"Dagannoth mother",
"Dagannoth Supreme",
"Dagannoth Prime",
"Dagannoth Rex"}, 1,
false,
TaskDifficulty.
HARD,
new Position(1891, 4369),
"Fremennik Province Light House") {
113 public boolean canAssign(
Player player) {
120 public boolean canAssign(
Player player) {
127 public boolean canAssign(
Player player) {
134 public boolean canAssign(
Player player) {
140 public boolean canAssign(
Player player) {
146 public boolean canAssign(
Player player) {
152 public boolean canAssign(
Player player) {
158 public boolean canAssign(
Player player) {
175 public boolean canAssign(
Player player) {
181 public boolean canAssign(
Player player) {
187 public boolean canAssign(
Player player) {
193 public boolean canAssign(
Player player) {
199 public boolean canAssign(
Player player) {
205 public boolean canAssign(
Player player) {
211 public boolean canAssign(
Player player) {
217 public boolean canAssign(
Player player) {
223 public boolean canAssign(
Player player) {
227 CERBERUS(
new String[]{
"Cerberus"}, 91,
true, TaskDifficulty.BOSS,
new Position(1310, 1268, 0),
"Cerberus' Lair") {
228 public boolean canAssign(
Player player) {
248 private final String[]
npc;
302 if (
npc.equalsIgnoreCase(name))
311 for (String name : task.getNpc()) {
324 if (tasks.isEmpty()) {
333 ArrayList<SlayerTask> tasks =
new ArrayList<>();
337 if (!task.canAssign(player))
List< SlayerTask > getBlocked()
Set< SlayerUnlockable > getUnlocked()
final SkillManager skills
Contains the npc definitions.
static String getCombatLevelRange(String name)
This class represents a character controlled by a player.
Represents a trainable and usable skill.
static final int SLAYER
The slayer skill id.
int getLevel(int id)
Gets the level of a skill.
int getMaxLevel(int id)
Gets the highest possible level of a skill.
Represents a single tile on the game world.
Handles miscellaneous methods.
static< T > T randomElement(Collection< T > collection)
Picks a random element out of any array type.
final int level
The slayer level required to receive the task.
String getCombatLevel()
Gets the combat level of the npc.
final Position position
The teleport position for the task.
TaskDifficulty difficulty
The difficulty of the task.
String getName()
Gets the name of the task.
static boolean canAttack(Player player, String npc)
Checks if a player can attack a slayer monster.
String getLocation()
Gets the teleport string.
static ArrayList< SlayerTask > asList(Player player, TaskDifficulty difficulty)
Returns all the available slayer tasks for the player as a list.
static int getPoints(TaskDifficulty difficulty)
Position getPosition()
Gets the position of the task.
String[] getNpc()
Gets the npcs of the task.
final String location
The string for the position.
TaskDifficulty getDifficulty()
Gets the difficulty of the slayer task.
boolean valid(String name)
Checks if the npc is a slayer task assignment.
int getLevel()
Gets the level of the task.
SlayerTask(String[] npc, int level, boolean levelNeeded, TaskDifficulty difficulty, Position position, String location)
Constructs a new SlayerTask.
final String[] npc
Array of the slayer npc.
static SlayerTask assign(Player player, TaskDifficulty difficulty)
Assigns a slayer task for the player.
static int getCompletionExperience(TaskDifficulty difficulty)
final boolean levelNeeded
Holds all the unlockable slayer rewards and tasks.
The slayer task difficulties.
boolean canAssign(final T player)