Class SpecialWaterMove


public class SpecialWaterMove extends SpecialMove
The SpecialWaterMove class represents Water boss's special combat move, which inflicts debuffs on the player and buffs Water boss's own stats. This move is unique to Water boss and impacts both the target and the attacker.
  • Constructor Details

    • SpecialWaterMove

      public SpecialWaterMove(String moveName, int hungerCost)
      Constructs the SpecialWaterMove with the given move name and hunger cost.
      Parameters:
      moveName - the name of the special move.
      hungerCost - the hunger cost required to perform the special move.
  • Method Details

    • applyDebuffs

      protected void applyDebuffs(CombatStatsComponent targetStats)
      Applies a random status effect to the target player after the move is executed Also apply debuff which decreases Player's strength by 20 and defense by 10.
      Specified by:
      applyDebuffs in class SpecialMove
      Parameters:
      targetStats - combat stats of the target (player) that will be affected by the debuffs.
    • applyBuffs

      protected void applyBuffs(CombatStatsComponent attackerStats)
      Buffs Water Boss's strength and defense stats after the special move. This method increases Water Boss's strength by 10 and defense by 25.
      Specified by:
      applyBuffs in class SpecialMove
      Parameters:
      attackerStats - combat stats of Kanga, who is performing the special move.