1package com.runehive.content.activity.impl.godwars;
3import com.runehive.Config;
4import com.runehive.content.activity.Activity;
5import com.runehive.content.activity.ActivityType;
6import com.runehive.content.activity.panel.ActivityPanel;
7import com.runehive.content.event.impl.ObjectInteractionEvent;
8import com.runehive.game.Animation;
9import com.runehive.game.Graphic;
10import com.runehive.game.world.entity.mob.Mob;
11import com.runehive.game.world.entity.mob.player.Player;
12import com.runehive.game.world.entity.mob.player.PlayerRight;
13import com.runehive.game.world.object.GameObject;
14import com.runehive.game.world.position.Area;
15import com.runehive.game.world.position.Position;
17import java.util.Optional;
64 if (
player.inventory.contains(11942, 1)) {
65 player.inventory.remove(11942);
66 player.message(
"You have used your Ecumencial key to enter the room.");
70 player.message(
"You need 5 kills before accessing this door!");
103 int identification =
object.
getId();
105 switch (identification) {
109 }
else if (
player.getPosition().getY() >
object.getPosition().getY()) {
116 }
else if (
player.getPosition().getX() >
object.getPosition().getX()) {
121 if (
player.getPosition().getX() <
object.getPosition().getX()) {
130 }
else if (
player.getPosition().getY() <
object.getPosition().getY()) {
135 if (
player.getY() == 5332) {
142 if (
player.getY() == 5269) {
149 if (
player.getX() >= 2851) {
The class that contains setting-related constants for the server.
static final Position DEFAULT_POSITION
The default, i.e.
Activity(int cooldown, int instance)
Constructs a new SequencedMinigame object.
final void pause()
Sets the cooldown flag to PAUSE.
GodwarsActivity(Player player)
Constructs a new GodwarsActivity.
void cleanup()
Cleans up the activity when finished.
final GodwarsListener listener
The combat listener for the god wars activity.
static final int SARADOMIN
Optional< GodwarsListener > getListener()
Gets an Optional of the ActivityListener for this activity.
void increment(int index)
Increments the godwars kill count and updates the interface.
boolean clickObject(Player player, ObjectInteractionEvent event)
void finish()
Finishes the activity.
static GodwarsActivity create(Player player)
Creates the godwars activity for the player.
void onRegionChange(Player player)
Called when the player changes region.
void update()
The update method.
void start()
Starts the next activity stage.
int[] killCount
The kill count array.
final Player player
The player instance of this activity.
boolean canEnter(int index)
Checks if the player can enter the godwars chambers.
static final int ARMADYL
The indexes for the god wars kill count.
void onDeath(Mob mob)
Called when the player die.
boolean canTeleport(Player player)
Called when the player attempts to teleport.
The combat listener for the god wars 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
static final int DEFAULT_INSTANCE
void animate(int animation)
void move(Position position)
Moves the mob to a set position.
final boolean isPlayer()
Check if an entity is a player.
Optional< Graphic > graphic
This class represents a character controlled by a player.
Handles checking if mobs are in a certain area.
static boolean inGodwars(Interactable entity)
Represents a single tile on the game world.
Holds all activity types that are timed.
Holds all the player right data.
static boolean isOwner(Player player)
Represents a game object.
default int getId()
Gets the object id.