|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.haphazard.dice.DicePool
A class that rolls several dice of the same sort
Constructor Summary | |
DicePool(boolean wildDie)
Creates a new instance of DicePool |
Method Summary | |
int |
getLastResult()
Gets the last rolled result |
int |
getWildDieStatus()
Gets the wild die status (how many times it has come up) |
int |
roll(int noDices,
int sides)
Rolls the dicepool |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DicePool(boolean wildDie)
wildDie
- If the pool uses a wild die or notMethod Detail |
public int roll(int noDices, int sides)
noDices
- The number of dices to rollsides
- The number of sides on each of the dices
public int getWildDieStatus()
public int getLastResult()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |