Class BlizzardEvent

java.lang.Object
com.csse3200.game.areas.weather.WeatherEvent
com.csse3200.game.areas.weather.BlizzardEvent

public class BlizzardEvent extends WeatherEvent
  • Constructor Details

    • BlizzardEvent

      public BlizzardEvent(int numHoursUntil, int duration, int priority, float severity) throws IllegalArgumentException
      Constructs an WeatherEvent with a given duration, priority and countdown
      Parameters:
      numHoursUntil - number of in-game hours until the weather event can occur
      duration - number of in-game hours that the event can occur for
      priority - priority of the weather event
      severity - 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 class WeatherEvent
    • stopEffect

      public void stopEffect()
      Description copied from class: WeatherEvent
      Stops the visual effect for the weather event
      Specified by:
      stopEffect in class WeatherEvent