Class Present

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

public class Present extends Box
A present which can be unwrapped.
Author:
kymara
  • Constructor Details

    • Present

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

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

    • setContent

      public void setContent(String type)
      Sets content.
      Parameters:
      type - of item to be produced.
    • useMe

      protected boolean useMe(Player player)
      Overrides:
      useMe in class Box