RuneHive-Game
Loading...
Searching...
No Matches
Spell.java
Go to the documentation of this file.
1package com.runehive.content.skill.impl.magic.spell;
2
3import com.runehive.game.world.entity.mob.player.Player;
4import com.runehive.game.world.items.Item;
5
6/**
7 * The itemcontainer for casting a spell.
8 *
9 * @author Daniel
10 */
11public interface Spell {
12
13 /** Gets the name of the spell. */
14 String getName();
15
16 /** Gets the runes required to cast the spell. */
18
19 /** Gets the level required to cast spell. */
20 int getLevel();
21
22 /** Executes the magic spell. */
23 void execute(Player player, Item item);
24
25}
This class represents a character controlled by a player.
Definition Player.java:125
The container class that represents an item that can be interacted with.
Definition Item.java:21
The itemcontainer for casting a spell.
Definition Spell.java:11
int getLevel()
Gets the level required to cast spell.
void execute(Player player, Item item)
Executes the magic spell.
String getName()
Gets the name of the spell.
Item[] getRunes()
Gets the runes required to cast the spell.