1package com.runehive.game.action.impl;
3import com.runehive.game.action.Action;
4import com.runehive.game.action.policy.WalkablePolicy;
5import com.runehive.game.world.entity.mob.player.Player;
6import com.runehive.game.world.position.Position;
22 super(player, 1,
true);
53 public abstract void init();
T getMob()
Gets the player.
Action(T mob, int delay, boolean instant)
Creates a new Action randomevent.
abstract void init()
Initialization method.
abstract int getInspectDelay()
Inspection time consumption.
WalkablePolicy getWalkablePolicy()
Gets the WalkablePolicy of this action.
Position position
The position.
abstract void giveRewards(Player player)
Rewards to give the player.
boolean prioritized()
Determines if this action is prioritized.
void execute()
A function representing the unit of work that will be carried out.
InspectAction(Player player, Position position)
Constructor.
synchronized final void cancel()
Cancels all subsequent executions.
void setDelay(int delay)
Sets the cyclic delay.
This class represents a character controlled by a player.
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.