Class Die

java.lang.Object
edu.ntnu.idi.idatt.model.dice.Die

public class Die extends Object
Die class

This class represents a single die. It has a value and can be rolled to get a new value.

  • 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.