|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjurpe.system.generation.Dice
public class Dice
Dice. This class implements dice abstraction for the game
| Constructor Summary | |
|---|---|
Dice()
Constructs a six faces dice. |
|
Dice(int facce)
Builds a die with "facce" faces |
|
| Method Summary | |
|---|---|
static short |
roll()
Roll a normal six faces die |
int |
throwDice()
Rolls 6 faces die. |
int |
throwDice(int volte)
Rolls "volte" dice |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Dice()
public Dice(int facce)
facce - faces of this die.| Method Detail |
|---|
public int throwDice()
public int throwDice(int volte)
volte - Number of times to roll dice
public static short roll()
throws JurpeException
JurpeException
|
Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||