Holger's
Java API

com.antelmann.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.

Author:
Holger Antelmann
See Also:
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

getFrame

Frame getFrame()
returns the root container itself


getJGamePlay

JGamePlay getJGamePlay()
returns the embedded JGamePlay object


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


requestGUIUndoMove

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


requestGUIRedoMove

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


say

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



(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads