Class WaterType

java.lang.Object
Elements.Water.WaterType
All Implemented Interfaces:
ElementType

public class WaterType extends Object implements ElementType
Represents the Water elemental type.

Water-type attacks are effective against Fire-type Pokémon and deal additional bonus damage when attacking them.

  • Constructor Details

    • WaterType

      public WaterType()
  • Method Details

    • tellerOfBonusAttackDamage

      public int tellerOfBonusAttackDamage(ElementType elementTypeOfOpponentPokemon)
      Determines the bonus damage applied when a Water-type Pokémon attacks an opponent Pokémon of a specific elemental type.

      If the opponent is of type FireType, a fixed bonus damage value is applied. Otherwise, no bonus damage is granted.

      Specified by:
      tellerOfBonusAttackDamage in interface ElementType
      Parameters:
      elementTypeOfOpponentPokemon - the elemental type of the opponent Pokémon
      Returns:
      the bonus attack damage applied based on elemental effectiveness