RuneHive-Tarnish
Neural OSRS Enhancement Framework
|
Public Member Functions | |
void | finish () |
void | cleanup () |
final boolean | isActive () |
int | getActiveSize () |
void | forEachActivity (BiConsumer< Mob, Activity > activity) |
final void | addActivity (Mob mob, Activity activity) |
final void | removeActivity (Mob mob) |
final void | groupMessage (String message) |
Public Member Functions inherited from com.osroyale.content.activity.Activity | |
Activity (int cooldown, int instance) | |
void | sequence () |
void | update () |
void | onLogout (Player player) |
void | onDeath (Mob mob) |
void | setPanel (Activity_Panel panel) |
Optional< Activity_Panel > | getPanel () |
void | onRegionChange (Player player) |
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 () |
Protected Member Functions | |
GroupActivity (int cooldown, int capacity) | |
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 | |
final Map< Mob, Activity > | activities |
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 |
A GroupActivity
is an extension of Activity
that holds a list of active activities.
Definition at line 53 of file GroupActivity.java.
|
inlineprotected |
Constructs a new GroupActivity
object.
cooldown | the initial cooldown in ticks |
Definition at line 66 of file GroupActivity.java.
|
inline |
Adds an activity to the activities
group.
mob | the mob to add |
activity | the mob's activity |
Definition at line 127 of file GroupActivity.java.
|
inline |
Cleans up the activity when finished.
Reimplemented from com.osroyale.content.activity.Activity.
Definition at line 85 of file GroupActivity.java.
|
inline |
Finishes the activity.
Reimplemented from com.osroyale.content.activity.Activity.
Reimplemented in com.osroyale.content.activity.impl.pestcontrol.PestControlGame.
Definition at line 77 of file GroupActivity.java.
|
inline |
Loops through all the activities.
activity | the consumer |
Definition at line 117 of file GroupActivity.java.
|
inline |
Gets the size of the activities in this group.
Definition at line 108 of file GroupActivity.java.
|
inline |
Sends a message to all the players in the group.
message | the message to send |
Definition at line 153 of file GroupActivity.java.
|
inline |
Checks if this group is active.
true
if there are active activities Definition at line 99 of file GroupActivity.java.
|
inline |
Removes an activity from the activities
group.
mob | the mob that owns the activity |
Definition at line 139 of file GroupActivity.java.
|
inlineprotected |
Starts the next activity stage.
Reimplemented from com.osroyale.content.activity.Activity.
Reimplemented in com.osroyale.content.activity.lobby.LobbyNode.
Definition at line 72 of file GroupActivity.java.
A map of activities that handles each mob individually.
Definition at line 56 of file GroupActivity.java.