Package org.rspeer.game.component.tdi
Class Magic
- java.lang.Object
-
- org.rspeer.game.component.tdi.Magic
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMagic.Autocaststatic classMagic.Bookstatic classMagic.Runestatic classMagic.RunePouch
-
Constructor Summary
Constructors Constructor Description Magic()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancanCast(Spell spell)static booleancast(Spell spell)static booleancast(Spell spell, Interactable target)static Magic.BookgetBook()static Set<Spell>getCastableSpells()static SpellgetSelectedSpell()static intgetSpellTargetFlags()static booleaninteract(Spell spell, String action)static booleanisSpellSelected()static booleanisStaffEquipped(Magic.Rune rune)static booleanisTomeEquipped(Magic.Rune rune)
-
-
-
Method Detail
-
isSpellSelected
public static boolean isSpellSelected()
-
getSelectedSpell
public static Spell getSelectedSpell()
-
getSpellTargetFlags
public static int getSpellTargetFlags()
-
canCast
public static boolean canCast(Spell spell)
-
cast
public static boolean cast(Spell spell)
-
getBook
public static Magic.Book getBook()
-
cast
public static boolean cast(Spell spell, Interactable target)
-
isStaffEquipped
public static boolean isStaffEquipped(Magic.Rune rune)
-
isTomeEquipped
public static boolean isTomeEquipped(Magic.Rune rune)
-
-