RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
com.osroyale.game.action.impl.NpcFaceAction Class Reference
Inheritance diagram for com.osroyale.game.action.impl.NpcFaceAction:
Collaboration diagram for com.osroyale.game.action.impl.NpcFaceAction:

Public Member Functions

 NpcFaceAction (Npc npc, Position face, int option)
void execute ()
String getName ()
boolean prioritized ()
WalkablePolicy getWalkablePolicy ()
Public Member Functions inherited from com.osroyale.game.action.Action< T extends Mob >
 Action (T mob, int delay, boolean instant)
 Action (T mob, int delay)
getMob ()
Public Member Functions inherited from com.osroyale.game.task.Task
 Task (boolean instant, int delay)
 Task (int delay)
boolean canRun ()
synchronized final void cancel ()
synchronized final void cancel (boolean logout)
Task attach (Object newKey)
boolean isInstant ()
int getDelay ()
void setDelay (int delay)
boolean isRunning ()
Optional< Object > getAttachment ()

Additional Inherited Members

Protected Member Functions inherited from com.osroyale.game.task.Task
void onSchedule ()
boolean canSchedule ()
void onCancel (boolean logout)

Detailed Description

An action that faces an npc, but resets their facing to their default facing direction after 15 seconds.

Author
Daniel
Michael | Chex

Definition at line 19 of file NpcFaceAction.java.

Constructor & Destructor Documentation

◆ NpcFaceAction()

com.osroyale.game.action.impl.NpcFaceAction.NpcFaceAction ( Npc npc,
Position face,
int option )
inline

Constructs a new NpcFaceAction.

Parameters
npcThe npc.
faceThe face position.
optionThe option id.

Definition at line 49 of file NpcFaceAction.java.

Member Function Documentation

◆ execute()

void com.osroyale.game.action.impl.NpcFaceAction.execute ( )
inline

A function representing the unit of work that will be carried out.

Reimplemented from com.osroyale.game.task.Task.

Definition at line 70 of file NpcFaceAction.java.

◆ getName()

String com.osroyale.game.action.impl.NpcFaceAction.getName ( )
inline

Gets the name of this action.

Returns
The name of this action.

Reimplemented from com.osroyale.game.action.Action< T extends Mob >.

Definition at line 81 of file NpcFaceAction.java.

◆ getWalkablePolicy()

WalkablePolicy com.osroyale.game.action.impl.NpcFaceAction.getWalkablePolicy ( )
inline

Gets the WalkablePolicy of this action.

Returns
The walkable policy of this action.

Reimplemented from com.osroyale.game.action.Action< T extends Mob >.

Definition at line 91 of file NpcFaceAction.java.

◆ prioritized()

boolean com.osroyale.game.action.impl.NpcFaceAction.prioritized ( )
inline

Determines if this action is prioritized.

When making an action prioritized, the next action will be ignored if not queued.

Returns
true if this action is prioritized, false otherwise.

Reimplemented from com.osroyale.game.action.Action< T extends Mob >.

Definition at line 86 of file NpcFaceAction.java.


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