Class AbstractAchievementFactory

java.lang.Object
games.stendhal.server.core.rp.achievement.factory.AbstractAchievementFactory
Direct Known Subclasses:
AdosItemQuestAchievementsFactory, CommerceAchievementFactory, DeathmatchAchievementFactory, ExperienceAchievementFactory, FightingAchievementFactory, FriendAchievementFactory, InteriorZoneAchievementFactory, ItemAchievementFactory, KillBlordroughsAchievementFactory, KirdnehItemAchievementFactory, MithrilbourghEnemyArmyAchievementFactory, ObtainAchievementsFactory, OutsideZoneAchievementFactory, ProductionAchievementFactory, QuestAchievementFactory, SemosMonsterQuestAchievementFactory, UndergroundZoneAchievementFactory

public abstract class AbstractAchievementFactory extends Object
Factory class for achievements creation with a fixed category
Author:
madmetzger
  • Constructor Details

    • AbstractAchievementFactory

      public AbstractAchievementFactory()
  • Method Details

    • getCategory

      protected abstract Category getCategory()
      Returns:
      the category the factory should use
    • createAchievements

      public abstract Collection<Achievement> createAchievements()
      Creates a collection of achievements
      Returns:
      the achievments
    • createAchievement

      protected Achievement createAchievement(String identifier, String title, String description, int score, boolean active, ChatCondition condition)
      Creates a single achievement
      Parameters:
      identifier -
      title -
      description -
      score -
      active -
      condition -
      Returns:
      the new Achievement
    • createFactories

      public static List<AbstractAchievementFactory> createFactories()
      Create a list of all known achievement factories
      Returns:
      the list of factories