RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.wintertodt.WintertodtAction Class Reference
Inheritance diagram for com.runehive.content.wintertodt.WintertodtAction:
Collaboration diagram for com.runehive.content.wintertodt.WintertodtAction:

Public Member Functions

String getName ()
 Gets the name of this action.
WalkablePolicy getWalkablePolicy ()
 Gets the WalkablePolicy of this action.
 WintertodtAction (Player player)
Public Member Functions inherited from com.runehive.game.action.Action< T extends Mob >
 Action (T mob, int delay)
 Creates a new Action randomevent.
 Action (T mob, int delay, boolean instant)
 Creates a new Action randomevent.
boolean cancellableInProgress ()
getMob ()
 Gets the player.
boolean prioritized ()
 Determines if this action is prioritized.
Public Member Functions inherited from com.runehive.game.task.Task
Task attach (Object newKey)
 Attaches a new key.
synchronized final void cancel ()
 Cancels all subsequent executions.
synchronized final void cancel (boolean logout)
 Cancels all subsequent executions.
boolean canRun ()
 Determines if the task can be ran.
Optional< Object > getAttachment ()
String getCreationStackTraceStr ()
int getDelay ()
Long getElapsedTimeFromRunStartTime ()
Optional< Long > getRunStartTime ()
long getTaskCreationTime ()
String getTaskId ()
boolean isInstant ()
boolean isRunning ()
void setDelay (int delay)
 Sets the cyclic delay.
void setExecutionTime ()
 Task (boolean instant, int delay)
 Creates a new Task.
 Task (int delay)
 Creates a new Task that doesn't execute instantly.

Protected Member Functions

void execute ()
 A function representing the unit of work that will be carried out.
Protected Member Functions inherited from com.runehive.game.task.Task
void baseExecute ()
boolean canSchedule ()
 A function executed on registration.
void onCancel (boolean logout)
 A function executed on cancellation.
void onSchedule ()
 A function executed on registration.

Additional Inherited Members

Package Functions inherited from com.runehive.game.task.Task
void onException (Exception e)
 A function executed on thrown exceptions.
void onLoop ()
 A function executed when iterated over.
final synchronized void process ()
synchronized void setRunning (boolean running)

Detailed Description

Definition at line 7 of file WintertodtAction.java.

Constructor & Destructor Documentation

◆ WintertodtAction()

com.runehive.content.wintertodt.WintertodtAction.WintertodtAction ( Player player)

Definition at line 9 of file WintertodtAction.java.

9 {
10 super(player, 1);
11 }

Member Function Documentation

◆ execute()

void com.runehive.content.wintertodt.WintertodtAction.execute ( )
protected

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

Reimplemented from com.runehive.game.task.Task.

Reimplemented in com.runehive.content.wintertodt.actions.FeedBrazier, and com.runehive.content.wintertodt.actions.FletchKindling.

Definition at line 24 of file WintertodtAction.java.

24 {
25
26 }

◆ getName()

String com.runehive.content.wintertodt.WintertodtAction.getName ( )

Gets the name of this action.

Returns
The name of this action.

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

Definition at line 19 of file WintertodtAction.java.

19 {
20 return "Wintertodt interuptable action";
21 }

◆ getWalkablePolicy()

WalkablePolicy com.runehive.content.wintertodt.WintertodtAction.getWalkablePolicy ( )

Gets the WalkablePolicy of this action.

Returns
The walkable policy of this action.

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

Definition at line 14 of file WintertodtAction.java.

14 {
15 return WalkablePolicy.NON_WALKABLE;
16 }

References com.runehive.game.action.policy.WalkablePolicy.NON_WALKABLE.


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