Class Bestiary

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

public class Bestiary extends OwnedItem
Item class that shows some basic information about enemies around Faiumoni.
  • Constructor Details

  • 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 OwnedItem
      Parameters:
      user - the RPEntity who uses the object
      Returns:
      true if successful
    • setOwner

      public void setOwner(String name)
      Description copied from class: OwnedItem
      Sets the owner of the item.
      Specified by:
      setOwner in class OwnedItem
      Parameters:
      name - Owner's name.
    • getOwner

      public String getOwner()
      Description copied from class: OwnedItem
      Override to retrieve owner name.
      Specified by:
      getOwner in class OwnedItem
      Returns:
      Name of owner or null if not owned.