Class KnightPlayer


public class KnightPlayer extends Player
Knight — the most durable character with high HP and defense. Skill: Slash — attacks twice per turn.
  • Constructor Details

    • KnightPlayer

      public KnightPlayer()
      Creates a Knight with default stats. HP 120, ATK 18, DEF 7, Skill: Slash (MULTI_HIT).
  • Method Details

    • calculateAttack

      public int calculateAttack()
      Calculates the Knight's attack value using attackPower directly.
      Specified by:
      calculateAttack in class Entity
      Returns:
      Attack value
    • getDescription

      public String getDescription()
      Returns a short description of the Knight for the UI.
      Specified by:
      getDescription in class Entity
      Returns:
      Description text