2package com.runehive.game.action.impl;
4import com.runehive.game.action.Action;
5import com.runehive.game.action.policy.WalkablePolicy;
6import com.runehive.game.world.entity.mob.npc.Npc;
7import com.runehive.content.pet.PetData;
8import com.runehive.game.world.position.Position;
10import java.util.Arrays;
56 if (Arrays.stream(
PetData.values()).anyMatch(p -> npc.
id == p.getNpc())) {
T getMob()
Gets the player.
Action(T mob, int delay, boolean instant)
Creates a new Action randomevent.
final int[] THIRD_OPTION
The array list of all the third option npcs that can not face.
WalkablePolicy getWalkablePolicy()
Gets the WalkablePolicy of this action.
void execute()
A function representing the unit of work that will be carried out.
NpcFaceAction(Npc npc, Position face, int option)
Constructs a new NpcFaceAction.
final int[] SECOND_OPTION
The array list of all the second option npcs that can not face.
final int[] FIRST_OPTION
The array list of all the first option npcs that can not face.
final int[] FOURTH_OPTION
int[] identification
The npc identifications to check if face action is allowed.
boolean prioritized()
Determines if this action is prioritized.
String getName()
Gets the name of this action.
synchronized final void cancel()
Cancels all subsequent executions.
Represents a non-player character in the in-game world.
Represents a single tile on the game world.
A queue policy determines whether the action can occur while walking.
NON_WALKABLE
This indicates actions cannot occur while walking.