Class InvitationScroll

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

public class InvitationScroll extends TeleportScroll
Represents an teleport scroll that acts as an invitation to an event. The programmatic event name is in the infostring attribute. As they are by invitation, it ignores destination zone anti-teleport rules.
  • Constructor Details

    • InvitationScroll

      public InvitationScroll(String name, String clazz, String subclass, Map<String,​String> attributes)
    • InvitationScroll

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

    • teleportTo

      protected boolean teleportTo(String where, Player player)
      Try to teleport to a marked scroll infostring style place.
      Parameters:
      where - A location in the form of zone x y.
      player - The player to teleport.
      Returns:
      true if teleport was successful.
    • useTeleportScroll

      protected boolean useTeleportScroll(Player player)
      Is invoked when a teleporting scroll is actually used.
      Specified by:
      useTeleportScroll in class TeleportScroll
      Parameters:
      player - The player who used the scroll and who will be teleported.
      Returns:
      true if teleport was successful.
    • describe

      public String describe()
      Get a description of the event and it's time.
      Overrides:
      describe in class Item
      Returns:
      A description.