Class TriggerWeatherReward
java.lang.Object
com.csse3200.game.missions.rewards.Reward
com.csse3200.game.missions.rewards.TriggerWeatherReward
TriggerWeatherReward is a Reward that when collected will add the provided WeatherEvents to the ClimateController.
-
Constructor Summary
ConstructorsConstructorDescriptionTriggerWeatherReward
(List<WeatherEvent> weatherEvents) A TriggerWeatherReward with a list of WeatherEvent objects. -
Method Summary
Modifier and TypeMethodDescriptionvoid
collect()
Adds each event from the list of weatherEvents to the ClimateController and sets the TriggerWeatherRewards as collected.Methods inherited from class com.csse3200.game.missions.rewards.Reward
isCollected, read, setCollected
-
Constructor Details
-
TriggerWeatherReward
A TriggerWeatherReward with a list of WeatherEvent objects.- Parameters:
weatherEvents
- - WeatherEvents to be added to the ClimateController.
-
-
Method Details