Class BaseAchievementConfig

java.lang.Object
com.csse3200.game.entities.configs.BaseAchievementConfig

public class BaseAchievementConfig extends Object
Base configuration class for achievements. Defines the structure for achievement definitions that are loaded from JSON config files.
  • Constructor Details

    • BaseAchievementConfig

      public BaseAchievementConfig()
      Default constructor for JSON deserialization.
  • Method Details

    • getName

      public String getName()
      Gets the display name of the achievement.
      Returns:
      the achievement name
    • setName

      public void setName(String name)
      Sets the display name of the achievement.
      Parameters:
      name - the achievement name
    • getDescription

      public String getDescription()
      Gets the description of the achievement.
      Returns:
      the achievement description
    • setDescription

      public void setDescription(String description)
      Sets the description of the achievement.
      Parameters:
      description - the achievement description
    • getStatistic

      public String getStatistic()
      Gets the statistic that this achievement tracks.
      Returns:
      the statistic name
    • setStatistic

      public void setStatistic(String statistic)
      Sets the statistic that this achievement tracks.
      Parameters:
      statistic - the statistic name
    • getQuota

      public int getQuota()
      Gets the quota required to unlock this achievement.
      Returns:
      the quota value
    • setQuota

      public void setQuota(int quota)
      Sets the quota required to unlock this achievement.
      Parameters:
      quota - the quota value
    • getSkillPoints

      public int getSkillPoints()
      Gets the skill points awarded when this achievement is unlocked.
      Returns:
      the skill points
    • setSkillPoints

      public void setSkillPoints(int skillPoints)
      Sets the skill points awarded when this achievement is unlocked.
      Parameters:
      skillPoints - the skill points
    • getTier

      public String getTier()
      Gets the tier of this achievement.
      Returns:
      the tier (T1, T2, T3)
    • setTier

      public void setTier(String tier)
      Sets the tier of this achievement.
      Parameters:
      tier - the tier (T1, T2, T3)
    • toString

      public String toString()
      Overrides:
      toString in class Object