|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.adom.jade.utils.Dice
Defines a class that interprets a dice string of type 'x'd'y'+'z' and can create random numbers derived from that dice string.
| Constructor Summary | |
|---|---|
Dice(java.lang.String representation)
Defines a die roll by a string representation. |
|
| Method Summary | |
|---|---|
int |
roll()
Rolls the defined number of dice and returns an appropriate result. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Dice(java.lang.String representation)
representation - the string representation of the die roll| Method Detail |
|---|
public int roll()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||