|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.haphazard.dice.Die
A small class denoting a die
| Constructor Summary | |
Die(int sides)
Creates a new instance of Die |
|
| Method Summary | |
int |
roll()
Rolls the created die |
static int |
roll(int sides)
Static convenience function to roll a die quickly |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Die(int sides)
sides - The number of sides of the die| Method Detail |
public int roll()
public static int roll(int sides)
sides - The number of sides on the die to roll
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||