Class MetalDetector

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

public class MetalDetector extends AreaUseItem
  • Constructor Details

    • MetalDetector

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

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

    • onUsedInArea

      protected boolean onUsedInArea(RPEntity user, StendhalRPZone zone, int x, int y)
      Description copied from class: AreaUseItem
      Inheriting classes can override this to determine action to execute when item is used in correct area.
      Overrides:
      onUsedInArea in class AreaUseItem
      Parameters:
      user - Entity using the item.
      zone - Zone the entity is currently in.
      x - X coordinate of entity's position.
      y - Y coordinate of entity's position.
      Returns:
      true if item used successfully.