Class Transformed


public class Transformed extends StatusBase
Copies moves, Ability, stats, type, and appearance of target.
  • Field Details

    • transformedPokemon

      public Species transformedPokemon
      The species of Pokémon transformed into.
    • transformedGender

      public Gender transformedGender
      The gender of the Pokémon that has been transformed into.
    • transformedForm

      public String transformedForm
      The form of the transformed Pokémon.
    • transformedPalette

      public String transformedPalette
      The palette of the Pokémon to be transformed into.
  • Constructor Details

    • Transformed

      public Transformed(PixelmonWrapper user, PixelmonWrapper target)
      Copies target's attributes to user.
      Parameters:
      user - Transform's user.
      target - Pokémon that Transform copies.
  • Method Details

    • changeTransformedSprite

      public void changeTransformedSprite(PixelmonWrapper user, PixelmonWrapper target)
      Set values to change the transformed Pokémon's sprite. We don't want to change the nickname, because we aren't trying to hide what Pokémon it actually is.
      Parameters:
      user - Transform's user.
      target - Pokémon that Transform copies.
    • applyToClientEntity

      public static void applyToClientEntity(TransformPacket p)
    • applyBeforeEffect

      public void applyBeforeEffect(PixelmonWrapper user, PixelmonWrapper target)
      Description copied from class: StatusBase
      Triggers when the Pokémon gains the status.
      Overrides:
      applyBeforeEffect in class StatusBase
      Parameters:
      user - The statused Pokémon.
      target - The attack's target.
    • applyEndOfBattleEffect

      public void applyEndOfBattleEffect(PixelmonWrapper pokemon)
      Description copied from class: StatusBase
      Triggers when the battle ends.
      Overrides:
      applyEndOfBattleEffect in class StatusBase
      Parameters:
      pokemon - The statused Pokémon.
    • modifyBaseStats

      public int[] modifyBaseStats(PixelmonWrapper user, int[] stats)
      Description copied from class: StatusBase
      Modifies the Pokémon's base stats at the beginning of a battle turn.
      Overrides:
      modifyBaseStats in class StatusBase
      Parameters:
      user - The Pokémon.
      stats - The Pokémon's stats.
      Returns:
      The modified stats.