Enum Class WeatherFactory

java.lang.Object
java.lang.Enum<WeatherFactory>
com.takenoko.weather.WeatherFactory
All Implemented Interfaces:
Serializable, Comparable<WeatherFactory>, Constable

public enum WeatherFactory extends Enum<WeatherFactory>
Weather modifier for the game, each element has it's ows effect on the game. The weather can be sunny, rainy, cloudy, windy, storm or random.
  • Enum Constant Details

    • SUNNY

      public static final WeatherFactory SUNNY
      A great sun shines on the bamboo grove. ☀️ The player benefits from an additional action. This action must be different from his two regular actions.
    • CLOUDY

      public static final WeatherFactory CLOUDY
      Gray clouds ☁️ darken the sky. Never mind, it is time to go on and perform some handy work. The player chooses an Improvement chip from those available in the reserve. It can then be placed immediately on a plot or stored on his individual Board (see page 8). If no Improvement is available, the player applies the effect of another climatic condition of his choice (sun, rain, wind or storm).
    • QUESTION_MARK

      public static final WeatherFactory QUESTION_MARK
      If he gets the “?” face, the player chooses what conditions they wish to apply this turn: Sun, Rain, Wind, Storm or Clouds.
    • WINDY

      public static final WeatherFactory WINDY
      A refreshing breeze 💨 blows through the bamboo garden. The player may, but is not required to, take two identical actions in this round (instead of two different actions).
    • RAINY

      public static final WeatherFactory RAINY
      A fine rain nourishes the young bamboo shoots. The player may place a Bamboo section on the irrigated plot of his choice, up to a limit of four sections per plot.
    • STORMY

      public static final WeatherFactory STORMY
      The sky rumbles and lightning strikes, frightening the panda. The player can put the panda on the plot of his choice. To recover from his fear, the shy animal eats a section of bamboo.
  • Constructor Details

    • WeatherFactory

      private WeatherFactory()
  • Method Details

    • values

      public static WeatherFactory[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static WeatherFactory valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • createWeather

      public abstract Weather createWeather()