dd.ui
Class DLUGUIHelper
java.lang.Object
dd.ui.DLUGUIHelper
- All Implemented Interfaces:
- DLUGUI, UI
- public class DLUGUIHelper
- extends java.lang.Object
- implements DLUGUI
Proxy object for DLUGUI classes. This class serves as an intermediate
layer between the network and the user interface. It is a "broker" -
it accepts input from the networking layer, queues the requests, runs
the requests on the Swing event thread, and forwards them on to the
UI object. That way, the UI object never needs to worry about swing
invocation - all methods are invoked on the Swing UI thread.
- Author:
- Eric Scharff
|
Constructor Summary |
DLUGUIHelper(DLUGUI destination)
Creates a helper associcated with the user interface provided. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DLUGUIHelper
public DLUGUIHelper(DLUGUI destination)
- Creates a helper associcated with the user interface provided. All
events to this object will be forwarded (one at a time) to the
target provided.
- Parameters:
destination - target which implements DLUGUI messages
availableGames
public void availableGames(java.lang.String[] gameList)
- Specified by:
availableGames in interface DLUGUI
joinedGame
public void joinedGame()
- Specified by:
joinedGame in interface DLUGUI
setNumber
public void setNumber(java.lang.String turnNumber)
- Specified by:
setNumber in interface DLUGUI
beginSetupPhase
public void beginSetupPhase()
- Specified by:
beginSetupPhase in interface DLUGUI
setRoot
public void setRoot(GameRoot root)
- Specified by:
setRoot in interface DLUGUI
startBriefing
public void startBriefing(Briefing briefing)
- Specified by:
startBriefing in interface DLUGUI
beginNegotiationPhase
public void beginNegotiationPhase()
- Specified by:
beginNegotiationPhase in interface DLUGUI
doneNotify
public void doneNotify(Player p)
- Specified by:
doneNotify in interface DLUGUI
prepareForVotingOn
public void prepareForVotingOn(Proposal proposal)
- Specified by:
prepareForVotingOn in interface DLUGUI
startVote
public void startVote()
- Specified by:
startVote in interface DLUGUI
startVotingTimer
public void startVotingTimer()
- Specified by:
startVotingTimer in interface DLUGUI
gameMessage
public void gameMessage(java.lang.String message)
- Specified by:
gameMessage in interface DLUGUI
notifyUser
public void notifyUser(java.lang.String message)
- Specified by:
notifyUser in interface DLUGUI
errorMessage
public void errorMessage(java.lang.String message)
- Specified by:
errorMessage in interface DLUGUI
endVote
public void endVote()
- Specified by:
endVote in interface DLUGUI
gameEnded
public void gameEnded()
- Specified by:
gameEnded in interface DLUGUI
enableUI
public void enableUI()
- Specified by:
enableUI in interface UI
disableUI
public void disableUI()
- Specified by:
disableUI in interface UI
pauseUI
public void pauseUI(java.lang.String message)
- Specified by:
pauseUI in interface UI
unpauseUI
public void unpauseUI()
- Specified by:
unpauseUI in interface UI
lostServer
public void lostServer()
- Specified by:
lostServer in interface UI