org.jscience.computing.game
Interface GameGUI

All Known Implementing Classes:
JGameFrame, JPlayerClient

public interface GameGUI

The GameGUI interface is implemented by objects that use the JGamePlay interface to play a game.

See Also:
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

getFrame

java.awt.Frame getFrame()
returns the root container itself

Returns:
DOCUMENT ME!

getJGamePlay

JGamePlay getJGamePlay()
returns the embedded JGamePlay object

Returns:
DOCUMENT ME!

repaint

void repaint()
to update the GUI


requestGUIMove

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

Parameters:
move - DOCUMENT ME!
Returns:
DOCUMENT ME!

requestGUIUndoMove

boolean requestGUIUndoMove()
requestGUIRedoMove() is when a GUI component requested to undo a move

Returns:
DOCUMENT ME!

requestGUIRedoMove

boolean requestGUIRedoMove()
requestGUIRedoMove() is when a GUI component requested to redo a move

Returns:
DOCUMENT ME!

say

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

Parameters:
message - DOCUMENT ME!