Class Warrior

java.lang.Object
All Implemented Interfaces:
java.lang.Comparable<java.lang.Object>

public class Warrior
extends Hero
Warrior character.
  • Constructor Details

    • Warrior

      public Warrior()
      Constructor.
  • Method Details

    • crushingBlow

      public void crushingBlow​(DungeonCharacter opponent)
      Special move.
      Parameters:
      opponent - The opponent to attack.
    • attack

      public void attack​(DungeonCharacter opponent)
      Description copied from class: DungeonCharacter
      Allows characters to attempt an attack on an opponent. First, chance to hit is considered. If a hit can occur, then the damage is calculated based on character's damage range. This damage is then applied to the opponent.
      Overrides:
      attack in class DungeonCharacter
      Parameters:
      opponent - The opponent being attacked.
    • battleChoices

      public void battleChoices​(DungeonCharacter opponent)
      Provides the user with possible actions to perform during their turn.
      Specified by:
      battleChoices in class DungeonCharacter
      Parameters:
      opponent - The opponent to attack.