Class ElectricType
java.lang.Object
Elements.Electric.ElectricType
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninttellerOfBonusAttackDamage(ElementType elementTypeOfOpponentPokemon) Determines the bonus damage applied when an Electric-type Pokémon attacks an opponent Pokémon of a specific elemental type.
-
Constructor Details
-
ElectricType
public ElectricType()
-
-
Method Details
-
tellerOfBonusAttackDamage
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:
tellerOfBonusAttackDamagein interfaceElementType- Parameters:
elementTypeOfOpponentPokemon- the elemental type of the opponent Pokémon- Returns:
- the bonus attack damage applied based on elemental effectiveness
-