Class AchievementFactory

java.lang.Object
com.deco2800.game.entities.factories.AchievementFactory

public class AchievementFactory extends Object
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 Details

    • AchievementFactory

      public AchievementFactory()
  • Method Details

    • createAchievement

      public static Entity createAchievement()
      Creates an achievement entity.
      Returns:
      achievement entity
    • getAchievements

      public static List<AchievementPropertyConfig> getAchievements()
      Returns a list of achievement properties stored in achievement config files.
      Returns:
      a list of achievement properties
    • getTextures

      public static String[] getTextures()