|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GameGUI
The GameGUI interface is implemented by objects that use the JGamePlay interface to play a game.
JGamePlay| Method Summary | |
|---|---|
Frame |
getFrame()
returns the root container itself |
JGamePlay |
getJGamePlay()
returns the embedded JGamePlay object |
void |
repaint()
to update the GUI |
boolean |
requestGUIMove(GameMove move)
requestGUIMove() is called when a JGamePlay container registered a move to be made throug the GUI; this move is then passed to the game playing frame through this method - allowing the main frame to decide what is to be done |
boolean |
requestGUIRedoMove()
requestGUIRedoMove() is when a GUI component requested to redo a move |
boolean |
requestGUIUndoMove()
requestGUIRedoMove() is when a GUI component requested to undo a move |
void |
say(String message)
allows to send a message to either the console or some place within the GUI to be displayed at the GUI's discretion |
| Method Detail |
|---|
Frame getFrame()
JGamePlay getJGamePlay()
void repaint()
boolean requestGUIMove(GameMove move)
boolean requestGUIUndoMove()
boolean requestGUIRedoMove()
void say(String message)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||