RuneHive-Tarnish
Neural OSRS Enhancement Framework
|
Public Member Functions | |
RandomEvent (Player player, int cooldown) | |
void | finish () |
void | onRegionChange (Player player) |
void | onLogout (Player player) |
void | cleanup () |
Public Member Functions inherited from com.osroyale.content.activity.Activity | |
Activity (int cooldown, int instance) | |
void | sequence () |
void | update () |
void | onDeath (Mob mob) |
void | setPanel (Activity_Panel panel) |
Optional< Activity_Panel > | getPanel () |
boolean | canTeleport (Player player) |
void | add (Mob mob) |
void | remove (Mob mob) |
void | removeAll (Mob... mobs) |
void | setPause (boolean pause) |
void | cooldown (int cooldown) |
int | getInstance () |
int | getTicks () |
Public Attributes | |
Player | player |
Protected Member Functions | |
abstract int | eventNpcIdentification () |
abstract String[] | eventNpcShout () |
void | start () |
Protected Member Functions inherited from com.osroyale.content.activity.Activity | |
final void | resetCooldown () |
final void | finishCooldown () |
final void | pause () |
final boolean | isPaused () |
Optional<? extends ActivityListener<? extends Activity > > | getListener () |
Protected Attributes | |
Npc | eventNpc |
boolean | angered |
Additional Inherited Members | |
Static Protected Attributes inherited from com.osroyale.content.activity.Activity | |
static final int | START = 0 |
static final int | FINISH = -1 |
static final int | PAUSE = -2 |
The random event handler.
Definition at line 57 of file RandomEvent.java.
|
inline |
Constructs a new RandomEvent
.
Definition at line 72 of file RandomEvent.java.
|
inline |
Cleans up the activity when finished.
Reimplemented from com.osroyale.content.activity.Activity.
Definition at line 136 of file RandomEvent.java.
|
abstractprotected |
The event npc identification.
Reimplemented in com.osroyale.content.activity.randomevent.impl.DrillDemonEvent, com.osroyale.content.activity.randomevent.impl.GenieEvent, and com.osroyale.content.activity.randomevent.impl.MimeEvent.
|
abstractprotected |
The event npc shout messages.
Reimplemented in com.osroyale.content.activity.randomevent.impl.DrillDemonEvent, com.osroyale.content.activity.randomevent.impl.GenieEvent, and com.osroyale.content.activity.randomevent.impl.MimeEvent.
|
inline |
Finishes the activity.
Reimplemented from com.osroyale.content.activity.Activity.
Definition at line 118 of file RandomEvent.java.
|
inline |
Called when the player logs out.
Reimplemented from com.osroyale.content.activity.Activity.
Definition at line 131 of file RandomEvent.java.
|
inline |
Called when the player changes region.
Reimplemented from com.osroyale.content.activity.Activity.
Definition at line 124 of file RandomEvent.java.
|
inlineprotected |
Starts the next activity stage.
Reimplemented from com.osroyale.content.activity.Activity.
Definition at line 85 of file RandomEvent.java.
|
protected |
Flag if the event is angered.
Definition at line 69 of file RandomEvent.java.
|
protected |
The event npc.
Definition at line 63 of file RandomEvent.java.
Player com.osroyale.content.activity.randomevent.RandomEvent.player |
The player instance.
Definition at line 60 of file RandomEvent.java.