|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectMonopoly.Dice
public class Dice
This class represents the dices in the game of Monopoly.
Implementation invariants: the result of the rolling is greater than zero
| Constructor Summary | |
|---|---|
Dice()
|
|
| Method Summary | |
|---|---|
boolean |
isDoubles()
Returns whether doubles were rolled. |
int[] |
rollDice()
Rolls the dice. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Dice()
| Method Detail |
|---|
public int[] rollDice()
public boolean isDoubles()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||