Class SummonPetScroll

All Implemented Interfaces:
EquipListener, TurnListener, UseListener, Stackable<StackableItem>, Killer, Cloneable, Iterable<String>, Serializable

public class SummonPetScroll extends Scroll
Represents a creature summon pet scroll.
  • Constructor Details

    • SummonPetScroll

      public SummonPetScroll(String name, String clazz, String subclass, Map<String,​String> attributes)
      Creates a new summon pet scroll.
      Parameters:
      name -
      clazz -
      subclass -
      attributes -
    • SummonPetScroll

      public SummonPetScroll(SummonPetScroll item)
      Copy constructor.
      Parameters:
      item - item to copy
  • Method Details

    • useScroll

      protected boolean useScroll(Player player)
      Is invoked when a summon pet scroll is used.
      Overrides:
      useScroll in class Scroll
      Parameters:
      player - The player who used the scroll
      Returns:
      true iff summoning was successful
    • describe

      public String describe()
      Description copied from class: Entity
      Describes the entity (if a players looks at it).
      Overrides:
      describe in class Item
      Returns:
      description from the players point of view
    • dropBlank

      public boolean dropBlank(Player player)