Class Dice

java.lang.Object
com.mygdx.game.Logic.Dice

public class Dice
extends java.lang.Object
The Dice class was supposed to represent the dice in game (both UI and Logic). It was later decided to separate the UI from the Logic so this class only has a single method
See DiceActor for the UI segment
  • Constructor Summary

    Constructors
    Constructor Description
    Dice()  
  • Method Summary

    Modifier and Type Method Description
    static int roll()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Dice

      public Dice()
  • Method Details

    • roll

      public static int roll()
      Returns:
      A random integer in [1,6]