Class AchievementManager
java.lang.Object
com.csse3200.game.components.quests.AchievementManager
Manages the achievements in the game by loading them from a config file,
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsAchievement
(List<Achievement> achievements, String name) Checks if the given list of achievements contains a specific achievement.Returns the current save (list of all achievements).
-
Method Details
-
containsAchievement
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
Returns the current save (list of all achievements).- Returns:
- achievements An Array of Achievement objects representing all achievements.
-