Class AchievementFactory
java.lang.Object
com.deco2800.game.entities.factories.AchievementFactory
Factory to create achievement entities with predefined conditions.
Each achievement entity type should have a creation method that returns a corresponding entity. Predefined achievement entity conditions can be loaded from configs stored as json files which are defined in "AchievementConfigs".
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Entity
Creates an achievement entity.static List<AchievementPropertyConfig>
Returns a list of achievement properties stored in achievement config files.static String[]
-
Constructor Details
-
AchievementFactory
public AchievementFactory()
-
-
Method Details
-
createAchievement
Creates an achievement entity.- Returns:
- achievement entity
-
getAchievements
Returns a list of achievement properties stored in achievement config files.- Returns:
- a list of achievement properties
-
getTextures
-