Class Blastoise
java.lang.Object
Pokemon.Pokemon
Pokemon.Water.Blastoise
Represents the Pokémon Blastoise, a Water-type Pokémon.
Blastoise has a single attack:
Hydro Pump: Deals base damage plus any elemental bonus against the opponent. After each use, the attack damage increases by 10 for subsequent uses.
Pokemon.hitOpponent(Pokemon, int) method.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AttackInfo[]Array of attacks available to Blastoise.Fields inherited from class Pokemon.Pokemon
elementType, tellsIfPokemonIsInvincible, tellsIfPokemonIsPoisoned -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new Blastoise Pokémon with default health, element type, ASCII art, and its single attack. -
Method Summary
Modifier and TypeMethodDescriptionintgetAttackResult1(ElementType elementTypeOfOpponentPokemon) Executes Blastoise'sHydro Pumpattack.voidhitOpponent(Pokemon OpponentPokemon, int attack) Performs an attack on an opponent Pokémon.Methods inherited from class Pokemon.Pokemon
getAsciiArt, getAttackAndDamageInfo, getAttackInfo, getCounterToIncreaseAttackDamage, getElementType, getHealth, getName, getTellsIfPokemonIsInvincible, getTellsIfPokemonIsPoisoned, ifPoisonedChangeHealth, IncreaseCounterToIncreaseAttackDamage, printBuffsAndDebuffs, setHealth, setHealthIfPokemonDamagesItsSelf, setHealthIfPokemonHealsItsSelf, setTellsIfPokemonIsInvincible, setTellsIfPokemonIsPoisoned
-
Field Details
-
attackInfo
Array of attacks available to Blastoise.
-
-
Constructor Details
-
Blastoise
public Blastoise()Constructs a new Blastoise Pokémon with default health, element type, ASCII art, and its single attack.
-
-
Method Details
-
getAttackResult1
Executes Blastoise'sHydro Pumpattack.Damage is calculated as the base attack damage plus any elemental bonus. Each subsequent use of this attack increases damage by 10.
- Parameters:
elementTypeOfOpponentPokemon- the element type of the opponent Pokémon- Returns:
- total damage dealt by
Hydro Pump, including any bonus for repeated use
-
hitOpponent
Performs an attack on an opponent Pokémon.Since Blastoise has only one attack, this method always executes
Hydro Pump, applying the increasing damage logic on each subsequent use.- Specified by:
hitOpponentin classPokemon- Parameters:
OpponentPokemon- the Pokémon being attackedattack- the index of the attack to use (ignored, as Blastoise has only one attack)
-