Class PledgeBase

Direct Known Subclasses:
FirePledge, GrassPledge, WaterPledge

public abstract class PledgeBase extends StatusBase
Traits shared by all Pledge statuses.
  • Constructor Details

    • PledgeBase

      public PledgeBase(StatusType type)
      Initializes the Pledge.
      Parameters:
      type - The type of Pledge.
  • Method Details

    • isTeamStatus

      public boolean isTeamStatus()
      Description copied from class: StatusBase
      Determines whether the status applies to the Pokémon's position in the battle.
      Overrides:
      isTeamStatus in class StatusBase
      Returns:
      Whether the status applies to the Pokémon's position in the battle.
    • 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.
    • copy

      public StatusBase copy()
      Description copied from class: StatusBase
      If necessary, makes a deep copy of the status.
      Overrides:
      copy in class StatusBase
      Returns:
      A deep copy of the status.