1package com.runehive.content.activity.randomevent;
4import com.runehive.Config;
5import com.runehive.content.activity.Activity;
6import com.runehive.content.activity.ActivityDeathType;
7import com.runehive.content.activity.ActivityType;
8import com.runehive.game.Animation;
9import com.runehive.game.Graphic;
10import com.runehive.game.world.entity.combat.hit.Hit;
11import com.runehive.game.world.entity.mob.npc.Npc;
12import com.runehive.game.world.entity.mob.player.Player;
13import com.runehive.net.packet.out.SendMessage;
73 player.send(
new SendMessage(
"You have been teleported home since you've ignored the random event."));
The class that contains setting-related constants for the server.
static final Position DEFAULT_POSITION
The default, i.e.
final int cooldown
The sequencing cooldown.
Activity(int cooldown, int instance)
Constructs a new SequencedMinigame object.
final void resetCooldown()
Resets the remaining ticks to the cached cooldown ticks.
void add(Mob mob)
Adds a mob to the activity.
final void finishCooldown()
Sets the cooldown flag to FINISH.
abstract int eventNpcIdentification()
The event npc identification.
Player player
The player instance.
Npc eventNpc
The event npc.
void cleanup()
Cleans up the activity when finished.
boolean angered
Flag if the event is angered.
abstract String[] eventNpcShout()
The event npc shout messages.
RandomEvent(Player player, int cooldown)
Constructs a new RandomEvent.
void onLogout(Player player)
Called when the player logs out.
void onRegionChange(Player player)
Called when the player changes region.
ActivityDeathType deathType()
int count
Th message count.
void finish()
Finishes the activity.
void start()
Starts the next activity stage.
Class that models a single animation used by an entity.
Represents a single graphic that can be used by entities.
A Hit object holds the damage amount and hitsplat data.
Represents a non-player character in the in-game world.
This class represents a character controlled by a player.
The OutgoingPacket that sends a message to a Players chatbox in the client.
Created by Daniel on 2018-01-28.
Holds all activity types that are timed.