Class QuestReward
java.lang.Object
com.csse3200.game.missions.rewards.Reward
com.csse3200.game.missions.rewards.QuestReward
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
collect()
When called will add the QuestReward's quests to the MissionManager.Methods inherited from class com.csse3200.game.missions.rewards.Reward
isCollected, read, setCollected
-
Constructor Details
-
QuestReward
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