Package com.csse3200.game.areas.weather
Class BlizzardEvent
java.lang.Object
com.csse3200.game.areas.weather.WeatherEvent
com.csse3200.game.areas.weather.BlizzardEvent
-
Field Summary
Fields inherited from class com.csse3200.game.areas.weather.WeatherEvent
climateControllerEvents, duration, numHoursUntil, priority, severity -
Constructor Summary
ConstructorsConstructorDescriptionBlizzardEvent(int numHoursUntil, int duration, int priority, float severity) Constructs anWeatherEventwith a given duration, priority and countdown -
Method Summary
Modifier and TypeMethodDescriptionvoidStarts the visual effect for the weather eventvoidStops the visual effect for the weather eventMethods inherited from class com.csse3200.game.areas.weather.WeatherEvent
getDuration, getNumHoursUntil, getPriority, getSeverity, isActive, isExpired, updateTime, write
-
Constructor Details
-
BlizzardEvent
public BlizzardEvent(int numHoursUntil, int duration, int priority, float severity) throws IllegalArgumentException Constructs anWeatherEventwith a given duration, priority and countdown- Parameters:
numHoursUntil- number of in-game hours until the weather event can occurduration- number of in-game hours that the event can occur forpriority- priority of the weather eventseverity- the severity of this rainstorm event- Throws:
IllegalArgumentException
-
-
Method Details
-
startEffect
public void startEffect()Description copied from class:WeatherEventStarts the visual effect for the weather event- Specified by:
startEffectin classWeatherEvent
-
stopEffect
public void stopEffect()Description copied from class:WeatherEventStops the visual effect for the weather event- Specified by:
stopEffectin classWeatherEvent
-