org.moyoman.client.reference.debug
Class DebugManager

java.lang.Object
  |
  +--org.moyoman.client.reference.debug.DebugManager

public class DebugManager
extends Object

Provides a manager for Moyoman Go debugging. This class acts as a delegate for Moyoman.

Since:
v0.03
Version:
v0.16
Author:
Jeffrey M. Thompson

Field Summary
private  ActionManager _actionManager
          The action manager.
private  DebugDialog _blackDebugDialog
          Debug dialog for player black.
private  IMoyoman _owner
          Owner.
private  DebugDialog _whiteDebugDialog
          Debug dialog for player white.
private static DebugType[] SUPPORTED_DEBUG_TYPES
          The desired debug types.
 
Constructor Summary
DebugManager(IMoyoman owner)
          Construct this object.
 
Method Summary
 void checkActions()
          Check the actions for their enabled status.
protected  DebugDialog debugActionPerformed(DebugDialog debugDialog, MoyomanPlayer player, String playerName)
          Perform the debug action for the given player.
 void debugBlackActionPerformed(ActionEvent event)
          Perform the debug action for player black.
 void debugWhiteActionPerformed(ActionEvent event)
          Perform the debug action for player white.
protected  ActionManager getActionManager()
          Return the action manager, creating it if necessary.
 Action getDebugBlackAction()
          Return the debug action for player black.
 Action getDebugWhiteAction()
          Return the debug action for player white.
 void setLanguageName(String languageName)
          Set the language name.
 void updateDebugDialog(List state)
          Update the debug dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUPPORTED_DEBUG_TYPES

private static final DebugType[] SUPPORTED_DEBUG_TYPES
The desired debug types.


_actionManager

private ActionManager _actionManager
The action manager.


_blackDebugDialog

private DebugDialog _blackDebugDialog
Debug dialog for player black.


_whiteDebugDialog

private DebugDialog _whiteDebugDialog
Debug dialog for player white.


_owner

private IMoyoman _owner
Owner.

Constructor Detail

DebugManager

public DebugManager(IMoyoman owner)
Construct this object.

Parameters:
owner - The owner.
Since:
v0.03
Method Detail

getDebugBlackAction

public Action getDebugBlackAction()
Return the debug action for player black.

Since:
v0.03

getDebugWhiteAction

public Action getDebugWhiteAction()
Return the debug action for player white.

Since:
v0.03

setLanguageName

public void setLanguageName(String languageName)
Set the language name.

Since:
v0.03

checkActions

public void checkActions()
Check the actions for their enabled status.

Since:
v0.03

debugBlackActionPerformed

public void debugBlackActionPerformed(ActionEvent event)
Perform the debug action for player black.

Since:
v0.03

debugWhiteActionPerformed

public void debugWhiteActionPerformed(ActionEvent event)
Perform the debug action for player white.

Since:
v0.03

updateDebugDialog

public void updateDebugDialog(List state)
Update the debug dialog.

Parameters:
state - The new board state.
Since:
v0.03

getActionManager

protected ActionManager getActionManager()
Return the action manager, creating it if necessary.

Since:
v0.03

debugActionPerformed

protected DebugDialog debugActionPerformed(DebugDialog debugDialog,
                                           MoyomanPlayer player,
                                           String playerName)
Perform the debug action for the given player.

Since:
v0.03