Package net.sf.colossus.game
Class Dice
- java.lang.Object
-
- net.sf.colossus.game.Dice
-
public final class Dice extends java.lang.Object
Class Dice handles die-rolling- Author:
- David Ripton, Romain Dolbeau
-
-
Constructor Summary
Constructors Constructor Description Dice()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static void
init(java.lang.String source)
static int
rollDie()
Put all die rolling in one place, in case we decide to change random number algorithms, use an external dice server, etc.static int
rollDie(int size)
static int
rollDieNonRandom()
-
-
-
Method Detail
-
init
static void init(java.lang.String source)
-
rollDie
public static int rollDie()
Put all die rolling in one place, in case we decide to change random number algorithms, use an external dice server, etc.
-
rollDie
public static int rollDie(int size)
-
rollDieNonRandom
public static int rollDieNonRandom()
-
-