Class FireType

java.lang.Object
Elements.Fire.FireType
All Implemented Interfaces:
ElementType

public class FireType extends Object implements 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 Details

    • FireType

      public FireType()
  • Method Details

    • tellerOfBonusAttackDamage

      public int tellerOfBonusAttackDamage(ElementType elementTypeOfOpponentPokemon)
      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:
      tellerOfBonusAttackDamage in interface ElementType
      Parameters:
      elementTypeOfOpponentPokemon - the elemental type of the opponent Pokémon
      Returns:
      the bonus attack damage applied based on elemental effectiveness