Class NoTerrain


public class NoTerrain extends Terrain
Null reference pattern for terrains.
  • Constructor Details

    • NoTerrain

      public NoTerrain()
      Initializes the status.
  • Method Details

    • getNewInstance

      public Terrain getNewInstance()
      Description copied from class: Terrain
      Gets a new instance of the subclass.
      Specified by:
      getNewInstance in class Terrain
      Returns:
      A new instance of the subclass.
    • getTerrainType

      @Nonnull public Terrain getTerrainType()
      Specified by:
      getTerrainType in class Terrain
    • getTypingForTerrain

      public Element getTypingForTerrain()
      Specified by:
      getTypingForTerrain in class Terrain
    • countBenefits

      protected int countBenefits(PixelmonWrapper user, PixelmonWrapper target)
      Description copied from class: Terrain
      Counts the number of ways that the target Pokémon benefits from the terrain.
      Specified by:
      countBenefits in class Terrain
      Parameters:
      user - The Pokémon using the terrain move.
      target - The Pokémon to count benefits for.
      Returns:
      The number of ways that the target Pokémon benefits from the terrain.