java.lang.Object
com.csse3200.game.progression.skilltree.Skill

public class Skill extends Object
Represents a skill in the game's skill tree Each skill has a name, a type of stat it affects, a percentage bonus, a cost and is either un/locked.
  • Constructor Details

    • Skill

      public Skill()
    • Skill

      public Skill(String name, Skill.StatType statType, float percentage, int cost)
      Constructs a new Skill with the specified parameters.
      Parameters:
      name - the name of the skill
      statType - the type of stat the skill affects
      percentage - the percentage bonus the skill provides
      cost - the cost to unlock the skill
  • Method Details

    • getName

      public String getName()
      Returns the name of the skill.
      Returns:
      the skill name
    • getStatType

      public Skill.StatType getStatType()
      Returns the type of stat this skill affects.
      Returns:
      the stat type
    • getCost

      public int getCost()
      Returns the cost required to unlock this skill.
      Returns:
      the skill cost
    • getPercentage

      public float getPercentage()
      Returns the percentage bonus this skill provides.
      Returns:
      the bonus percentage
    • getDescription

      public String getDescription()
      Returns a brief description of a Skill based on its other attributes
      Returns:
      a string describing the skill