|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--LottoLogic
Logic for the Lotto game.
| Constructor Summary | |
LottoLogic(LottoGUI gui)
Construct a LottoLogic object connected to the specified LottoGUI object. |
|
| Method Summary | |
void |
buttonPressed(int button)
Updates the logic when a numbered button is pressed. |
void |
clearTheBoard()
Prepare the logic for another draw. |
void |
draw()
"Play" the Lotto game once. |
void |
reset()
Clears the board and resets the statistics back to zero. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LottoLogic(LottoGUI gui)
gui - the GUI "connected" to the user.| Method Detail |
public void draw()
public void reset()
public void buttonPressed(int button)
button - the number of the button pressed.public void clearTheBoard()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||