RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
com.osroyale.content.activity.randomevent.RandomEvent Class Referenceabstract
Inheritance diagram for com.osroyale.content.activity.randomevent.RandomEvent:
Collaboration diagram for com.osroyale.content.activity.randomevent.RandomEvent:

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_PanelgetPanel ()
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

Detailed Description

The random event handler.

Author
Daniel.

Definition at line 57 of file RandomEvent.java.

Constructor & Destructor Documentation

◆ RandomEvent()

com.osroyale.content.activity.randomevent.RandomEvent.RandomEvent ( Player player,
int cooldown )
inline

Constructs a new RandomEvent.

Definition at line 72 of file RandomEvent.java.

Member Function Documentation

◆ cleanup()

void com.osroyale.content.activity.randomevent.RandomEvent.cleanup ( )
inline

Cleans up the activity when finished.

Reimplemented from com.osroyale.content.activity.Activity.

Definition at line 136 of file RandomEvent.java.

◆ eventNpcIdentification()

abstract int com.osroyale.content.activity.randomevent.RandomEvent.eventNpcIdentification ( )
abstractprotected

◆ eventNpcShout()

abstract String[] com.osroyale.content.activity.randomevent.RandomEvent.eventNpcShout ( )
abstractprotected

◆ finish()

void com.osroyale.content.activity.randomevent.RandomEvent.finish ( )
inline

Finishes the activity.

Reimplemented from com.osroyale.content.activity.Activity.

Definition at line 118 of file RandomEvent.java.

◆ onLogout()

void com.osroyale.content.activity.randomevent.RandomEvent.onLogout ( Player player)
inline

Called when the player logs out.

Reimplemented from com.osroyale.content.activity.Activity.

Definition at line 131 of file RandomEvent.java.

◆ onRegionChange()

void com.osroyale.content.activity.randomevent.RandomEvent.onRegionChange ( Player player)
inline

Called when the player changes region.

Reimplemented from com.osroyale.content.activity.Activity.

Definition at line 124 of file RandomEvent.java.

◆ start()

void com.osroyale.content.activity.randomevent.RandomEvent.start ( )
inlineprotected

Starts the next activity stage.

Reimplemented from com.osroyale.content.activity.Activity.

Definition at line 85 of file RandomEvent.java.

Member Data Documentation

◆ angered

boolean com.osroyale.content.activity.randomevent.RandomEvent.angered
protected

Flag if the event is angered.

Definition at line 69 of file RandomEvent.java.

◆ eventNpc

Npc com.osroyale.content.activity.randomevent.RandomEvent.eventNpc
protected

The event npc.

Definition at line 63 of file RandomEvent.java.

◆ player

Player com.osroyale.content.activity.randomevent.RandomEvent.player

The player instance.

Definition at line 60 of file RandomEvent.java.


The documentation for this class was generated from the following file: