Package com.mygdx.game.Logic
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
See
DiceActor
for the UI segment-
Constructor Details
-
Dice
public Dice()
-
-
Method Details
-
roll
public static int roll()- Returns:
- A random integer in [1,6]
-