Package com.takenoko.weather
Class Dice
java.lang.Object
com.takenoko.weather.Dice
- Direct Known Subclasses:
WeatherDice
Dice with N sides, by default it has 6.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
random
-
sides
private final int sides -
lastRoll
private int lastRoll
-
-
Constructor Details
-
Dice
Specify the number of sides and the Random Generator- Parameters:
sides
- number of sides of the dicerandom
- random number generator
-
Dice
public Dice(int sides) Specify the number of sides- Parameters:
sides
- number of sides of the dice
-
-
Method Details