Class Achievement

java.lang.Object
com.deco2800.game.achievements.Achievement

public class Achievement extends Object
A class that represents an achievement. It can be persisted.
  • Constructor Details

    • Achievement

      public Achievement()
    • Achievement

      public Achievement(int id, AchievementType achievementType, boolean isStat, boolean isOneRun, boolean isOneNight, String name, String description)
  • Method Details

    • getId

      public int getId()
    • setId

      public void setId(int id)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getTotalAchieved

      public Integer getTotalAchieved()
    • setTotalAchieved

      public void setTotalAchieved(Integer totalAchieved)
    • isCompleted

      public boolean isCompleted()
    • setCompleted

      public void setCompleted(boolean completed)
    • getAchievementData

      public String getAchievementData()
    • setAchievementData

      public void setAchievementData(String achievementData)
    • getAchievementType

      public AchievementType getAchievementType()
    • setAchievementType

      public void setAchievementType(AchievementType achievementType)
    • isStat

      public boolean isStat()
    • isOneRun

      public boolean isOneRun()
    • isOneNight

      public boolean isOneNight()
    • setStat

      public void setStat(boolean stat)
    • setOneRun

      public void setOneRun(boolean oneRun)
    • setOneNight

      public void setOneNight(boolean oneNight)
    • setNotifyOnLoad

      public void setNotifyOnLoad(Boolean notifyOnLoad)
    • getNotifyOnLoad

      public Boolean getNotifyOnLoad()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object