1package com.runehive.content.skill.impl.hunter.net;
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.object.GameObject;
10 private boolean run =
false;
14 super(player, 3,
false);
20 run =
getMob().movement.isRunningToggled();
22 getMob().mobAnimation.setWalk(6594);
25 getMob().movement.setRunningToggled(
false);
26 getMob().message(
"You use your strength to push through the wheat.");
31 if (
getMob().getX() >
object.getX()) {
33 }
else if (
getMob().getX() <
object.getX()) {
37 if (
getMob().getY() >
object.getY()) {
39 }
else if (
getMob().getY() <
object.getY()) {
43 getMob().walk(
getMob().getPosition().transform(dx, dy),
true);
65 return "puro-puro-action";
PuroPuroAction(Player player, GameObject object)
String getName()
Gets the name of this action.
WalkablePolicy getWalkablePolicy()
Gets the WalkablePolicy of this action.
void onSchedule()
A function executed on registration.
void onCancel(boolean logout)
A function executed on cancellation.
void execute()
A function representing the unit of work that will be carried out.
T getMob()
Gets the player.
Action(T mob, int delay, boolean instant)
Creates a new Action randomevent.
synchronized final void cancel()
Cancels all subsequent executions.
This class represents a character controlled by a player.
A queue policy determines whether the action can occur while walking.
NON_WALKABLE
This indicates actions cannot occur while walking.
Represents a game object.