Class FireType
java.lang.Object
Elements.Fire.FireType
- All Implemented Interfaces:
ElementType
Represents the Fire elemental type.
Fire-type attacks are effective against Grass-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 a Fire-type Pokémon attacks an opponent Pokémon of a specific elemental type.
-
Constructor Details
-
FireType
public FireType()
-
-
Method Details
-
tellerOfBonusAttackDamage
Determines the bonus damage applied when a Fire-type Pokémon attacks an opponent Pokémon of a specific elemental type.If the opponent is of type
GrassType, 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
-