Class AchievementManager

java.lang.Object
com.csse3200.game.components.quests.AchievementManager

public class AchievementManager extends Object
Manages the achievements in the game by loading them from a config file,
  • Method Details

    • containsAchievement

      public boolean containsAchievement(List<Achievement> achievements, String name)
      Checks if the given list of achievements contains a specific achievement.
      Parameters:
      achievements - The list of achievements to search in.
      name - The name of the quest to search for.
      Returns:
      True if the achievement is found, false otherwise.
    • getAchievements

      public List<Achievement> getAchievements()
      Returns the current save (list of all achievements).
      Returns:
      achievements An Array of Achievement objects representing all achievements.