All Implemented Interfaces:
EquipListener, TurnListener, UseListener, Killer, Cloneable, Iterable<String>, Serializable
Direct Known Subclasses:
Basket, Present, Stocking

public class Box extends Item
a box which can be unwrapped.
Author:
hendrik
  • Constructor Details

    • Box

      public Box(String name, String clazz, String subclass, Map<String,​String> attributes)
      Creates a new box.
      Parameters:
      name -
      clazz -
      subclass -
      attributes -
    • Box

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

    • onUsed

      public boolean onUsed(RPEntity user)
      Description copied from interface: UseListener
      Invoked when the object is used.
      Specified by:
      onUsed in interface UseListener
      Overrides:
      onUsed in class Item
      Parameters:
      user - the RPEntity who uses the object
      Returns:
      true if successful
    • useMe

      protected boolean useMe(Player player)