1package com.runehive.content.activity.impl;
3import com.runehive.content.ActivityLog;
4import com.runehive.content.achievement.AchievementHandler;
5import com.runehive.content.achievement.AchievementKey;
6import com.runehive.content.activity.Activity;
7import com.runehive.content.activity.ActivityDeathType;
8import com.runehive.content.activity.ActivityType;
9import com.runehive.content.event.impl.NpcInteractionEvent;
10import com.runehive.game.world.World;
11import com.runehive.game.world.entity.mob.Mob;
12import com.runehive.game.world.entity.mob.npc.Npc;
13import com.runehive.game.world.entity.mob.npc.NpcDeath;
14import com.runehive.game.world.entity.mob.player.Player;
15import com.runehive.game.world.position.Area;
16import com.runehive.game.world.position.Position;
17import com.runehive.util.Utility;
47 activity.vorkath.blockInteract =
true;
48 activity.vorkath.blockFace =
true;
59 boolean successfull =
vorkath.isDead();
96 vorkath.blockInteract =
false;
97 vorkath.blockFace =
false;
Handles the achievements.
static void activate(Player player, AchievementKey achievement)
Activates the achievement for the individual player.
Activity(int cooldown, int instance)
Constructs a new SequencedMinigame object.
int instance
The activity instance level.
void restart(int delay, Runnable runnable)
final Player player
The player instance for the activity.
static VorkathActivity create(Player player)
Creates a new Vorkath activity for the player.
void onDeath(Mob mob)
Called when the player die.
boolean canTeleport(Player player)
Called when the player attempts to teleport.
Npc vorkath
The Vorkath npc instance.
void finish()
Finishes the activity.
void onRegionChange(Player player)
Called when the player changes region.
boolean summoned
Flag if Vorkath has been summoned.
void onLogout(Player player)
Called when the player logs out.
void cleanup()
Cleans up the activity when finished.
boolean clickNpc(Player player, NpcInteractionEvent event)
void start()
Starts the next activity stage.
ActivityDeathType deathType()
VorkathActivity(Player player, int instance)
Constructs a new VorkathActivity.
Represents the game world.
static void schedule(Task task)
Submits a new event.
final boolean isNpc()
Check if an entity is an npc.
Represents a non-player character in the in-game world.
boolean equals(Object obj)
This class represents a character controlled by a player.
Handles checking if mobs are in a certain area.
static boolean inVorkath(Interactable entity)
Represents a single tile on the game world.
Handles miscellaneous methods.
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.