|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.moyoman.client.reference.GameManager
Provides a manager for Moyoman Go games. This class acts as a delegate to
Moyoman
.
Field Summary | |
private ActionManager |
_actionManager
The action manager. |
private GameEngineSwingWorker |
_engine
Game engine thread. |
private GameRecord |
_gameRecord
Game record. |
private boolean |
_isInteractive
Interactive state flag. |
private IMoyoman |
_owner
Owner. |
private PlayerManager |
_playerManager
Player manager. |
Fields inherited from interface org.moyoman.client.reference.util.IGUIConstants |
DEBUG, DIRTY_PROPERTY, GAP, MARGIN, TRANSPARENT_COLOR |
Constructor Summary | |
GameManager(IMoyoman owner)
Construct this object. |
Method Summary | |
void |
checkActions()
Check the actions for their enabled status. |
void |
clear()
Clear all actions. |
protected EndOfGameListener |
createEndOfGameListener()
Create a new end of game listener. |
void |
deleteActionPerformed(ActionEvent event)
Perform the delete action. |
protected ActionManager |
getActionManager()
Return the action manager, creating it if necessary. |
Action |
getDeleteAction()
Return the delete action. |
GameEngineSwingWorker |
getEngine()
Return the game engine. |
Action |
getNewAction()
Return the new action. |
Action |
getOpenAction()
Return the open action. |
protected int |
getQuitGameConfirmation()
Return confirmation of a quit game action. |
protected Action |
getResumeAction()
Return the resume action. |
Action |
getSaveAction()
Return the save action. |
Action |
getShowOpenSourceHomeAction()
Return the show open source home action. |
Action |
getShowWebHomePageAction()
Return the show web home page action. |
boolean |
isInteractive()
Return true if this is in interactive mode. |
void |
newActionPerformed(ActionEvent event)
Perform the new action. |
void |
openActionPerformed(ActionEvent event)
Perform the open action. |
void |
resumeActionPerformed(ActionEvent event)
Perform the resume action. |
void |
saveActionPerformed(ActionEvent event)
Perform the save action. |
void |
setInteractive(boolean isInteractive)
Set the interactive state. |
void |
showOpenSourceHomeActionPerformed(ActionEvent event)
Perform the show open source home action. |
void |
showWebHomePageActionPerformed(ActionEvent event)
Perform the show web home page action. |
protected void |
startGameSwingWorkerFinished(String statusMessage,
PlayerManager playerManager)
Perform final actions on the event-dispatching thread. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private ActionManager _actionManager
private GameEngineSwingWorker _engine
private GameRecord _gameRecord
private IMoyoman _owner
private PlayerManager _playerManager
private boolean _isInteractive
Constructor Detail |
public GameManager(IMoyoman owner)
owner
- The owner.Method Detail |
public Action getDeleteAction()
public GameEngineSwingWorker getEngine()
public void setInteractive(boolean isInteractive)
public boolean isInteractive()
public Action getNewAction()
public Action getOpenAction()
public Action getSaveAction()
public Action getShowOpenSourceHomeAction()
public Action getShowWebHomePageAction()
public void checkActions()
public void clear()
public void deleteActionPerformed(ActionEvent event)
public void newActionPerformed(ActionEvent event)
public void openActionPerformed(ActionEvent event)
public void resumeActionPerformed(ActionEvent event)
public void saveActionPerformed(ActionEvent event)
public void showOpenSourceHomeActionPerformed(ActionEvent event)
public void showWebHomePageActionPerformed(ActionEvent event)
protected ActionManager getActionManager()
protected int getQuitGameConfirmation()
JOptionPane.YES
or JOptionPane.NO
.protected Action getResumeAction()
protected EndOfGameListener createEndOfGameListener()
protected void startGameSwingWorkerFinished(String statusMessage, PlayerManager playerManager)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |