1package com.runehive.game.action.impl;
3import com.runehive.game.Animation;
4import com.runehive.game.UpdatePriority;
5import com.runehive.game.action.Action;
6import com.runehive.game.action.policy.WalkablePolicy;
7import com.runehive.game.world.entity.mob.player.Player;
8import com.runehive.game.world.object.GameObject;
9import com.runehive.game.world.position.Position;
10import com.runehive.net.packet.out.SendMessage;
11import com.runehive.util.MessageColor;
13import java.util.function.Predicate;
50 getMob().getCombat().reset();
51 getMob().damageImmunity.reset(3_000);
58 }
else if (
count == 1) {
76 return "Ladder action";
Class that models a single animation used by an entity.
T getMob()
Gets the player.
final T mob
The Mob associated with this ActionEvent.
Action(T mob, int delay, boolean instant)
Creates a new Action randomevent.
LadderAction(Player mob, GameObject ladder, Position position, Predicate< Player > condition, String message)
WalkablePolicy getWalkablePolicy()
Gets the WalkablePolicy of this action.
boolean prioritized()
Determines if this action is prioritized.
boolean canSchedule()
A function executed on registration.
void execute()
A function representing the unit of work that will be carried out.
final Predicate< Player > condition
LadderAction(Player mob, GameObject ladder, Position position)
void onSchedule()
A function executed on registration.
String getName()
Gets the name of this action.
void onCancel(boolean logout)
A function executed on cancellation.
synchronized final void cancel()
Cancels all subsequent executions.
This class represents a character controlled by a player.
Represents a single tile on the game world.
The OutgoingPacket that sends a message to a Players chatbox in the client.
Represents different priorities for updating.
VERY_HIGH
A very high priority.
A queue policy determines whether the action can occur while walking.
NON_WALKABLE
This indicates actions cannot occur while walking.
Holds an enum of colors for ease.
Represents a game object.