|
|||||||||
| 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 | |
|---|---|
java.awt.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(java.lang.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 |
|---|
java.awt.Frame getFrame()
JGamePlay getJGamePlay()
void repaint()
boolean requestGUIMove(GameMove move)
move - DOCUMENT ME!
boolean requestGUIUndoMove()
boolean requestGUIRedoMove()
void say(java.lang.String message)
message - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||