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
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()