|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.huyderman.javadice.DieFactory
public class DieFactory
This class provides functions that return common dice types.
Constructor Summary | |
---|---|
DieFactory()
|
Method Summary | |
---|---|
static Die |
getD10()
Creates a ten sided die |
static Die |
getD10(int n)
Creates ten sided dice |
static Die |
getD100()
Creates a hundred sided die |
static Die |
getD100(int n)
Creates a hundred sided dice |
static Die |
getD12()
Creates a twelve sided die |
static Die |
getD12(int n)
Creates twelve sided dice |
static Die |
getD16()
Creates a sixteen sided die |
static Die |
getD16(int n)
Creates sixteen sided dice |
static Die |
getD2()
Creates a two sided die |
static Die |
getD2(int n)
Creates two sided dice |
static Die |
getD20()
Creates a twenty sided die |
static Die |
getD20(int n)
Creates twenty sided dice |
static Die |
getD30()
Creates a thirty sided die |
static Die |
getD30(int n)
Creates thirty sided dice |
static Die |
getD4()
Creates a four sided die |
static Die |
getD4(int n)
Creates four sided dice |
static Die |
getD6()
Creates a six sided die |
static Die |
getD6(int n)
Creates six sided dice |
static Die |
getD8()
Creates a eight sided die |
static Die |
getD8(int n)
Creates eight sided dice |
static Die |
getDie(int n,
int x)
|
static Die |
getFudgeDice(int n)
Creates dice that simulates a Fudge die, with two '-', two blank, and two '+'. |
static Die |
getFudgeDie()
Creates one Fudge die. |
static java.util.Random |
getRandom()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DieFactory()
Method Detail |
---|
public static final Die getDie(int n, int x)
public static final Die getFudgeDice(int n)
n
- number of dice
public static final Die getFudgeDie()
getFudgeDice(int)
public static final Die getD2(int n)
n
- number of dice
public static final Die getD2()
public static final Die getD4(int n)
n
- number of dice
public static final Die getD4()
public static final Die getD6(int n)
n
- number of dice
public static final Die getD6()
public static final Die getD8(int n)
n
- number of dice
public static final Die getD8()
public static final Die getD10(int n)
n
- number of dice
public static final Die getD10()
public static final Die getD12(int n)
n
- number of dice
public static final Die getD12()
public static final Die getD16(int n)
n
- number of dice
public static final Die getD16()
public static final Die getD20(int n)
n
- number of dice
public static final Die getD20()
public static final Die getD30(int n)
n
- number of dice
public static final Die getD30()
public static Die getD100(int n)
n
- number of dice
public static final Die getD100()
public static java.util.Random getRandom()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |