|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Frame | +--javax.swing.JFrame | +--org.moyoman.client.reference.Moyoman
Provides a client GUI for Moyoman Go.
Developers wishing to extend this client will use:
addCustomMenuItem( Action )
Add an item to the custom menu.
startGame( PlayerManager )
Start a new game.
Nested Class Summary |
Nested classes inherited from class javax.swing.JFrame |
JFrame.AccessibleJFrame |
Nested classes inherited from class java.awt.Frame |
Frame.AccessibleAWTFrame |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private AdminManager |
_adminManager
Admin manager. |
private Board |
_board
Board. |
private CustomMenu |
_customMenu
Custom menu. |
private DebugManager |
_debugManager
Debug manager. |
private JMenu |
_debugMenu
Debug menu. |
private GameManager |
_gameManager
Game manager. |
private String |
_languageName
The current language. |
private JPanel |
_mainPanel
The main panel. |
private PrisonerCounter |
_prisonerCounter
The prisoner counter. |
private static int |
COORDINATE_AREA
Index of the coordinate status area. |
private static int |
MOVE_NUMBER_AREA
Index of the move number status area. |
private static int |
PRISONER_AREA
Index of the prisoner status area. |
Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Window |
|
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface org.moyoman.client.reference.util.IGUIConstants |
DEBUG, DIRTY_PROPERTY, GAP, MARGIN, TRANSPARENT_COLOR |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
Moyoman()
Construct this object. |
Method Summary | |
void |
aboutActionPerformed(ActionEvent event)
Perform the about action. |
protected JMenuItem |
addCustomMenuItem(Action action)
Add an item to the custom menu. |
void |
autoMoveActionPerformed(ActionEvent event)
Perform the auto move action. |
void |
checkActions()
Check the actions for their enabled status. |
protected AdminManager |
createAdminManager()
Create the admin manager. |
protected DebugManager |
createDebugManager()
Create the debug manager. |
protected GameManager |
createGameManager()
Create the game manager. |
protected JPanel |
createMainPanel()
Create the main panel. |
protected void |
fillMenuBar()
Create the menu bar. |
protected void |
fillToolBar()
Create the tool bar. |
protected Action |
getAutoMoveAction()
Return the auto move action. |
protected JCheckBoxMenuItem |
getAutoMoveUI()
Return the auto move widget. |
Board |
getBoard()
Return the board. |
CommandExecutor |
getCommandExecutor()
Return the command executor. |
GameEngineSwingWorker |
getEngine()
Return the game engine. |
JFrame |
getFrame()
Return this application's frame. |
protected Action |
getInteractiveAction()
Return the interactive action. |
protected JCheckBoxMenuItem |
getInteractiveUI()
Return the interactive widget. |
protected Action |
getLanguageAction()
Return the language action. |
protected Action |
getNextMoveAction()
Return the next move action. |
protected Action |
getShowToolBarAction()
Return the show tool bar action. |
protected JCheckBoxMenuItem |
getShowToolBarUI()
Return the show tool bar widget. |
protected Action |
getSoundAction()
Return the sound action. |
protected JCheckBoxMenuItem |
getSoundUI()
Return the sound widget. |
protected Action |
getUndoMoveAction()
Return the undo move action. |
protected void |
informPlayerError(Exception e)
Inform the user of a player error. |
void |
interactiveActionPerformed(ActionEvent event)
Perform the interactive action. |
boolean |
isAutoMove()
Return true if auto-move is selected. |
boolean |
isInteractive()
Return true if interactive is selected. |
protected boolean |
isShowingToolBar()
Return the show tool bar flag. |
void |
languageActionPerformed(ActionEvent event)
Perform the language action. |
static void |
main(String[] args)
Run method. |
void |
makeMoveEventOccurred(MakeMoveEvent event)
Respond to make move events. |
void |
nextMoveActionPerformed(ActionEvent event)
Perform the next move action. |
void |
processMove(Move move)
Process the given move. |
void |
processMove(Move move,
boolean doMark)
Process the given move. |
void |
processMoveDescriptor(MoveDescriptor moveDescriptor)
Process the given move descriptor. |
void |
quitActionPerformed(ActionEvent event)
Perform the quit action. |
void |
reconcileBoard(GameRecord gameRecord)
Reconcile the board to the game record. |
void |
requestMoveEventOccurred(RequestMoveEvent event)
Respond to request move events. |
protected void |
setLanguageName(String languageName)
Perform the language action. |
void |
showToolBarActionPerformed(ActionEvent event)
Perform the show tool bar action. |
void |
soundActionPerformed(ActionEvent event)
Perform the sound action. |
protected void |
startGame(PlayerManager playerManager)
Start a new game. |
void |
startGameSwingWorkerFinished(String statusMessage,
PlayerManager playerManager)
Perform final actions on the event-dispatching thread. |
void |
undoMoveActionPerformed(ActionEvent event)
Perform the undo move action. |
protected void |
updateMoveDisplay(Move move)
Update the move display. |
protected void |
updatePrisonerDisplay()
Update the prisoner display. |
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Field Detail |
private static final int MOVE_NUMBER_AREA
private static final int PRISONER_AREA
private static final int COORDINATE_AREA
private AdminManager _adminManager
private Board _board
private CustomMenu _customMenu
private DebugManager _debugManager
private GameManager _gameManager
private JMenu _debugMenu
private JPanel _mainPanel
private PrisonerCounter _prisonerCounter
private String _languageName
Constructor Detail |
public Moyoman()
Method Detail |
public boolean isAutoMove()
isAutoMove
in interface IMoyoman
public Board getBoard()
getBoard
in interface IMoyoman
public CommandExecutor getCommandExecutor()
getCommandExecutor
in interface IMoyoman
public GameEngineSwingWorker getEngine()
getEngine
in interface IMoyoman
public JFrame getFrame()
getFrame
in interface IMoyoman
public boolean isInteractive()
public void aboutActionPerformed(ActionEvent event)
public void autoMoveActionPerformed(ActionEvent event)
public void checkActions()
checkActions
in interface IMoyoman
public void interactiveActionPerformed(ActionEvent event)
public void languageActionPerformed(ActionEvent event)
public static void main(String[] args) throws Exception
Exception
public void makeMoveEventOccurred(MakeMoveEvent event)
makeMoveEventOccurred
in interface MakeMoveListener
event
- The MakeMoveEvent object.public void nextMoveActionPerformed(ActionEvent event)
nextMoveActionPerformed
in interface IMoyoman
public void processMove(Move move)
public void processMove(Move move, boolean doMark)
public void processMoveDescriptor(MoveDescriptor moveDescriptor)
public void quitActionPerformed(ActionEvent event)
public void reconcileBoard(GameRecord gameRecord)
reconcileBoard
in interface IMoyoman
public void requestMoveEventOccurred(RequestMoveEvent event)
requestMoveEventOccurred
in interface RequestMoveListener
event
- The RequestMovEvent object.public void showToolBarActionPerformed(ActionEvent event)
public void soundActionPerformed(ActionEvent event)
public void startGameSwingWorkerFinished(String statusMessage, PlayerManager playerManager)
startGameSwingWorkerFinished
in interface IMoyoman
public void undoMoveActionPerformed(ActionEvent event)
protected Action getAutoMoveAction()
protected JCheckBoxMenuItem getAutoMoveUI()
protected Action getInteractiveAction()
protected JCheckBoxMenuItem getInteractiveUI()
protected Action getLanguageAction()
protected void setLanguageName(String languageName)
protected Action getNextMoveAction()
protected Action getShowToolBarAction()
protected JCheckBoxMenuItem getShowToolBarUI()
protected boolean isShowingToolBar()
protected Action getSoundAction()
protected JCheckBoxMenuItem getSoundUI()
protected Action getUndoMoveAction()
protected JMenuItem addCustomMenuItem(Action action)
protected AdminManager createAdminManager()
protected DebugManager createDebugManager()
protected GameManager createGameManager()
protected JPanel createMainPanel()
protected void fillMenuBar()
protected void fillToolBar()
protected void informPlayerError(Exception e)
protected void startGame(PlayerManager playerManager) throws InternalErrorException
InternalErrorException
protected void updateMoveDisplay(Move move)
protected void updatePrisonerDisplay()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |