Class Weather

java.lang.Object
com.takenoko.weather.Weather
Direct Known Subclasses:
Cloudy, QuestionMark, Rainy, Stormy, Sunny, Windy

public abstract class Weather extends Object
Interface for the weather.
  • Constructor Details

    • Weather

      public Weather()
  • Method Details

    • apply

      public abstract List<Class<? extends Action>> apply(Board board, BotManager botManager)
      Code to be executed when the weather is rolled and modifiers applied.
      Returns:
      List of actions to be executed after the weather is applied.
    • revert

      public abstract void revert(Board board, BotManager botManager)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object