Package edu.ntnu.idi.idatt.model.dice
Class Die
java.lang.Object
edu.ntnu.idi.idatt.model.dice.Die
Die class
This class represents a single die. It has a value and can be rolled to get a new value.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Die
public Die()Constructor for Die class.
-
-
Method Details
-
getValue
public int getValue()Returns the value of the die.- Returns:
- The value of the die.
-
roll
public void roll()Rolls the die.
-