Class GrassType

java.lang.Object
Elements.Grass.GrassType
All Implemented Interfaces:
ElementType

public class GrassType extends Object implements ElementType
Represents the Grass elemental type.

Grass-type attacks currently do not receive any bonus damage when used against opposing elemental types.

  • Constructor Details

    • GrassType

      public GrassType()
  • Method Details

    • tellerOfBonusAttackDamage

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

      No bonus damage is applied regardless of the opponent’s elemental type.

      Specified by:
      tellerOfBonusAttackDamage in interface ElementType
      Parameters:
      elementTypeOfOpponentPokemon - the elemental type of the opponent Pokémon
      Returns:
      the bonus attack damage applied, which is always 0