Package com.csse3200.game.areas.weather
Class RainStormEvent
java.lang.Object
com.csse3200.game.areas.weather.WeatherEvent
com.csse3200.game.areas.weather.RainStormEvent
-
Field Summary
Fields inherited from class com.csse3200.game.areas.weather.WeatherEvent
climateControllerEvents, duration, numHoursUntil, priority, severity
-
Constructor Summary
ConstructorsConstructorDescriptionRainStormEvent
(int numHoursUntil, int duration, int priority, float severity) Constructs anWeatherEvent
with a given duration, priority and countdown -
Method Summary
Modifier and TypeMethodDescriptionvoid
Starts the visual effect for the weather eventvoid
Stops 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
-
RainStormEvent
public RainStormEvent(int numHoursUntil, int duration, int priority, float severity) throws IllegalArgumentException Constructs anWeatherEvent
with 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:WeatherEvent
Starts the visual effect for the weather event- Specified by:
startEffect
in classWeatherEvent
-
stopEffect
public void stopEffect()Description copied from class:WeatherEvent
Stops the visual effect for the weather event- Specified by:
stopEffect
in classWeatherEvent
-