1package com.runehive.game.action.impl;
3import com.runehive.Config;
4import com.runehive.game.Animation;
5import com.runehive.game.action.Action;
6import com.runehive.game.action.policy.WalkablePolicy;
7import com.runehive.game.world.entity.mob.player.Player;
8import com.runehive.game.world.entity.skill.Skill;
9import com.runehive.game.world.items.Item;
10import com.runehive.game.world.object.GameObject;
11import com.runehive.util.Utility;
32 super(player, 2,
true);
55 return "Flax picking";
Class that models a single animation used by an entity.
T getMob()
Gets the player.
Action(T mob, int delay, boolean instant)
Creates a new Action randomevent.
boolean prioritized()
Determines if this action is prioritized.
WalkablePolicy getWalkablePolicy()
Gets the WalkablePolicy of this action.
final GameObject object
The flax game object.
FlaxPickingAction(Player player, GameObject object)
Constructs a new FlaxPickingAction.
void execute()
A function representing the unit of work that will be carried out.
String getName()
Gets the name of this action.
synchronized final void cancel()
Cancels all subsequent executions.
void setDelay(int delay)
Sets the cyclic delay.
void animate(int animation)
This class represents a character controlled by a player.
final Inventory inventory
The container class that represents an item that can be interacted with.
boolean add(Item item)
Attempts to deposit item into this container.
A queue policy determines whether the action can occur while walking.
NON_WALKABLE
This indicates actions cannot occur while walking.
Represents a game object.