Class QuestReward

java.lang.Object
com.csse3200.game.missions.rewards.Reward
com.csse3200.game.missions.rewards.QuestReward

public class QuestReward extends Reward
The QuestReward can be added as a reward to a quest so that when the quest is complete the collect() method will add the quests from the constructor to the MissionManager.
  • Constructor Details

    • QuestReward

      public QuestReward(List<Supplier<Quest>> selectableQuests, List<Supplier<Quest>> activeQuests)
      A QuestReward that adds quests to the MissionManager on collect().
      Parameters:
      selectableQuests - - the quests to be added when the Quest attached is complete.
      activeQuests - - the quests to be activated when the reward is collected.
  • Method Details

    • collect

      public void collect()
      When called will add the QuestReward's quests to the MissionManager.
      Specified by:
      collect in class Reward