Class RebornPlayer


public class RebornPlayer extends Player
Reborn — a support character with moderate HP and defense but the lowest attack. Special traits: larger inventory (5 slots) and can walk on water. Skill: Heal — restores 30 HP.
  • Constructor Details

    • RebornPlayer

      public RebornPlayer()
      Creates a Reborn with default stats. HP 100, ATK 16, DEF 5, Skill: Heal (HEAL_SELF), 5-slot inventory.
  • Method Details

    • calculateAttack

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

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