Class ArcherPlayer


public class ArcherPlayer extends Player
Archer — the highest-attack character, but with relatively low HP and defense. Special trait: can move through trees (TREE) but cannot cross rivers. Skill: Strike — attack that fully bypasses defense.
  • Constructor Details

    • ArcherPlayer

      public ArcherPlayer()
      Creates an Archer with default stats. HP 85, ATK 24, DEF 3, Skill: Strike (PIERCE).
  • Method Details

    • calculateAttack

      public int calculateAttack()
      Calculates the Archer'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 Archer for the UI.
      Specified by:
      getDescription in class Entity
      Returns:
      Description text
    • canMoveTo

      public boolean canMoveTo(Cell cell)
      Archer can move through TREE cells but cannot cross ROCK or RIVER cells.
      Overrides:
      canMoveTo in class Player
      Parameters:
      cell - Target cell to move to
      Returns:
      true if movement is allowed