Class SkyDropBase

Direct Known Subclasses:
SkyDropped, SkyDropping

public abstract class SkyDropBase extends StatusBase
Shared functionality between both sides of Sky Drop.
  • Constructor Details

    • SkyDropBase

      public SkyDropBase(StatusType type)
      Initializes the status.
      Parameters:
      type - The status's type.
  • Method Details

    • stopsSwitching

      public boolean stopsSwitching()
      Description copied from class: StatusBase
      Determines whether the status stops switching.
      Overrides:
      stopsSwitching in class StatusBase
      Returns:
      Whether the status stops switching.
    • stopsForcedSwitches

      public boolean stopsForcedSwitches(PixelmonWrapper pw)
      Description copied from class: StatusBase
      Determines whether the status prevents another Pokémon from switching them.
      Overrides:
      stopsForcedSwitches in class StatusBase
      Parameters:
      pw - The Pokémon triggering the switch.
      Returns:
      Whether the status stops the forced switch.
    • stopsIncomingAttack

      public boolean stopsIncomingAttack(PixelmonWrapper pokemon, PixelmonWrapper user)
      Description copied from class: StatusBase
      Determines whether the status stops an attack about to hit the statused Pokémon.
      Overrides:
      stopsIncomingAttack in class StatusBase
      Parameters:
      pokemon - The statused Pokémon.
      user - The attack's user.
      Returns:
      Whether the attack is stopped.
    • stopsIncomingAttackMessage

      public void stopsIncomingAttackMessage(PixelmonWrapper pokemon, PixelmonWrapper user)
      Description copied from class: StatusBase
      Displays a battle message when the status stops an attack.
      Overrides:
      stopsIncomingAttackMessage in class StatusBase
      Parameters:
      pokemon - The statused Pokémon.
      user - The attack's user.