dd.util
Interface DLUGUI

All Superinterfaces:
UI
All Known Subinterfaces:
GUIEvents
All Known Implementing Classes:
DLUGUIHelper, Dummy, Main, Robot

public interface DLUGUI
extends UI

Methods that the DLUG user interface must support. These methods are called by the networking layer in response to messages received from the game server. The user interface should often change in response to these messages.

Note that the networking layer will call these methods on the networking thread. For a non-GUI implementation (such as a robotic player) this is probably not a problem. For a Java Swing user interface, it is probably desireable to forward these messages on to the main GUI thread.

Author:
Eric Scharff

Method Summary
 void availableGames(java.lang.String[] gameList)
           
 void beginNegotiationPhase()
           
 void beginSetupPhase()
           
 void doneNotify(Player p)
           
 void endVote()
           
 void errorMessage(java.lang.String message)
           
 void gameEnded()
           
 void gameMessage(java.lang.String message)
           
 void joinedGame()
           
 void notifyUser(java.lang.String message)
           
 void prepareForVotingOn(Proposal proposal)
           
 void setNumber(java.lang.String turnNumber)
           
 void setRoot(GameRoot root)
           
 void startBriefing(Briefing briefing)
           
 void startVote()
           
 void startVotingTimer()
           
 
Methods inherited from interface dd.util.UI
disableUI, enableUI, lostServer, pauseUI, unpauseUI
 

Method Detail

availableGames

public void availableGames(java.lang.String[] gameList)

joinedGame

public void joinedGame()

setNumber

public void setNumber(java.lang.String turnNumber)

beginSetupPhase

public void beginSetupPhase()

setRoot

public void setRoot(GameRoot root)

startBriefing

public void startBriefing(Briefing briefing)

beginNegotiationPhase

public void beginNegotiationPhase()

doneNotify

public void doneNotify(Player p)

prepareForVotingOn

public void prepareForVotingOn(Proposal proposal)

startVote

public void startVote()

startVotingTimer

public void startVotingTimer()

gameMessage

public void gameMessage(java.lang.String message)

notifyUser

public void notifyUser(java.lang.String message)

errorMessage

public void errorMessage(java.lang.String message)

endVote

public void endVote()

gameEnded

public void gameEnded()