Class WeatherDice

java.lang.Object
com.takenoko.weather.Dice
com.takenoko.weather.WeatherDice

public class WeatherDice extends Dice
Implementation of the WeatherDice of the game, it has 6 sides and each side is a weather.
  • Constructor Details

    • WeatherDice

      public WeatherDice()
      Default Constructor
    • WeatherDice

      public WeatherDice(Random random)
      Specify the Random Generator
      Parameters:
      random - random number generator
  • Method Details

    • rollWeather

      public Weather rollWeather()
      Roll the dice to get a Weather
      Returns:
      the result of the roll
    • peekWeather

      public Weather peekWeather()