Package com.takenoko.weather
Enum Class WeatherFactory
- All Implemented Interfaces:
Serializable
,Comparable<WeatherFactory>
,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGray clouds ☁️ darken the sky.If he gets the “?” face, the player chooses what conditions they wish to apply this turn: Sun, Rain, Wind, Storm or Clouds.A fine rain nourishes the young bamboo shoots.The sky rumbles and lightning strikes, frightening the panda.A great sun shines on the bamboo grove.A refreshing breeze 💨 blows through the bamboo garden. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Weather
static WeatherFactory
Returns the enum constant of this class with the specified name.static WeatherFactory[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
If he gets the “?” face, the player chooses what conditions they wish to apply this turn: Sun, Rain, Wind, Storm or Clouds. -
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
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
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
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
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 nameNullPointerException
- if the argument is null
-
createWeather
-