Class ElectricType

java.lang.Object
Elements.Electric.ElectricType
All Implemented Interfaces:
ElementType

public class ElectricType extends Object implements ElementType
Represents the Electric elemental type.

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

  • Constructor Details

    • ElectricType

      public ElectricType()
  • Method Details

    • tellerOfBonusAttackDamage

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

      If the opponent is of type WaterType, 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