public class Snow extends Weather
Boosts Ice-type pokemon's defense
  • Constructor Details

    • Snow

      public Snow()
      Initializes hail.
    • Snow

      public Snow(int turnsToGo)
      Initializes hail.
      Parameters:
      turnsToGo - The number of turns for hail to last.
  • Method Details

    • getNewInstance

      protected Weather getNewInstance(int turns)
      Description copied from class: Weather
      Gets a new instance of the subclass.
      Specified by:
      getNewInstance in class Weather
      Parameters:
      turns - The number of turns that the weather will last for.
      Returns:
      A new instance of the subclass.
    • modifyStats

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

      protected int countBenefits(PixelmonWrapper user, PixelmonWrapper target)
      Description copied from class: Weather
      Counts the number of ways that the target Pokémon benefits from the weather.
      Specified by:
      countBenefits in class Weather
      Parameters:
      user - The Pokémon using the weather move.
      target - The Pokémon to count benefits for.
      Returns:
      The number of ways that the target Pokémon benefits from the weather.
    • 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.