Class MultiReward
java.lang.Object
com.csse3200.game.missions.rewards.Reward
com.csse3200.game.missions.rewards.MultiReward
The MultiReward is a Reward that can be added to a Quest in order to have multiple types
of Reward in one class.
-
Constructor Summary
ConstructorsConstructorDescriptionMultiReward
(List<Reward> rewards) A MultiReward which allows multiple types of Rewards to be added to a Quest. -
Method Summary
Modifier and TypeMethodDescriptionvoid
collect()
When called this method will call collect() on each of the rewards in the list.Methods inherited from class com.csse3200.game.missions.rewards.Reward
isCollected, read, setCollected
-
Constructor Details
-
MultiReward
A MultiReward which allows multiple types of Rewards to be added to a Quest.- Parameters:
rewards
- - the rewards to be collected on collect() of the MultiReward
-
-
Method Details