Class SuppressType

Direct Known Subclasses:
Roosting

public abstract class SuppressType extends StatusBase
  • Field Details

    • turnsLeft

      protected transient int turnsLeft
      The number of turns remaining.
  • Constructor Details

    • SuppressType

      public SuppressType(StatusType type, PixelmonWrapper pw)
      Initializes the Status, lasting until the end of the turn.
      Parameters:
      type - The status's type.
      pw - The pokémon gaining the status.
    • SuppressType

      public SuppressType(StatusType type, PixelmonWrapper pw, int turns)
      Initializes the Status.
      Parameters:
      type - The status's type.
      pw - The pokémon gaining the status.
      turns - The number of turns the status should last.
  • Method Details

    • suppressedElement

      protected abstract Element suppressedElement()
      Specifies the Element to suppress.
      Returns:
      The element to be suppressed by this status.
    • applyRepeatedEffect

      public void applyRepeatedEffect(PixelmonWrapper pw)
      Description copied from class: StatusBase
      Triggered at the end of every turn.
      Overrides:
      applyRepeatedEffect in class StatusBase
      Parameters:
      pw - The statused Pokémon.