Class Spell

  • Direct Known Subclasses:
    GameObjectSpell, NumberSpell

    public abstract class Spell
    extends java.lang.Object
    Describes an in-game spell.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Spell​(@NotNull java.lang.String name)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.lang.String getName()
      Returns the spell name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Spell

        protected Spell​(@NotNull
                        @NotNull java.lang.String name)
        Creates a new instance.
        Parameters:
        name - the spell name
    • Method Detail

      • getName

        @NotNull
        public @NotNull java.lang.String getName()
        Returns the spell name.
        Returns:
        the spell name