Class StatusHealerEater

java.lang.Object
games.stendhal.server.entity.item.consumption.StatusHealerEater
All Implemented Interfaces:
TurnListener

public class StatusHealerEater extends Object implements TurnListener
Times out status healing/immunizing items.
Author:
hendrik, AntumDeluge
  • Constructor Details

    • StatusHealerEater

      public StatusHealerEater(RPEntity entity, StatusType status)
      Constructor defining one status healed by the item.
      Parameters:
      entity - Entity the item is used on.
      status - Status type this item cures.
    • StatusHealerEater

      public StatusHealerEater(RPEntity entity, Set<StatusType> status)
      Constructor defining multiple statuses healed by the item.
      Parameters:
      entity - Entity the item is used on.
      status - List of statuses this item cures.
  • Method Details

    • onTurnReached

      public void onTurnReached(int currentTurn)
      Description copied from interface: TurnListener
      This method is called when the turn number is reached.
      Specified by:
      onTurnReached in interface TurnListener
      Parameters:
      currentTurn - current turn number
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object