Class Shovel

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

public class Shovel extends AreaUseItem
  • Constructor Details

  • 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.