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.content.skill.impl.magic.spell.Spell;
7import com.runehive.game.world.items.Item;
36 return "spell-action";
T getMob()
Gets the player.
Action(T mob, int delay, boolean instant)
Creates a new Action randomevent.
String getName()
Gets the name of this action.
void execute()
A function representing the unit of work that will be carried out.
WalkablePolicy getWalkablePolicy()
Gets the WalkablePolicy of this action.
void onSchedule()
A function executed on registration.
SpellAction(Player player, Spell spell, Item item)
Creates the SpellAction.
boolean prioritized()
Determines if this action is prioritized.
synchronized final void cancel()
Cancels all subsequent executions.
This class represents a character controlled by a player.
The container class that represents an item that can be interacted with.
A queue policy determines whether the action can occur while walking.
WALKABLE
This indicates actions may occur while walking.
The itemcontainer for casting a spell.