|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.simplegamenet.dice.DiceSingle
This class has the value of a dice and knows whether the dice has been held or not.
| Constructor Summary | |
DiceSingle(int diceValue)
Initialises an instance of DiceSingle with a certain value for the dice |
|
| Method Summary | |
int |
getDiceValue()
Gets the value of the dice. |
boolean |
isDiceHeld()
Checks if the dice has been held. |
void |
setDiceHeld(boolean holdDice)
Sets whether the dice has been held or not. |
void |
setDiceValue(int diceValue)
Sets the value of the dice. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DiceSingle(int diceValue)
diceValue - The value of the dice.| Method Detail |
public void setDiceHeld(boolean holdDice)
holdDice - A boolean that tells if the dice is held.public boolean isDiceHeld()
public int getDiceValue()
public void setDiceValue(int diceValue)
diceValue - The value of the dice.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||