dd.ui
Interface GUIEvents

All Superinterfaces:
DLUGUI, UI
All Known Implementing Classes:
Dummy, Main

public interface GUIEvents
extends DLUGUI

Methods provided by the DLUG user interface. The main class for the DLUG user interface is a controller. When GUI objects need to request information or send back notifications, they do so by interacting with this controller. The controller implements this interface to support that communication.

This interface is a superset of DLUGUI, which provides non-GUI events. In general, communication from the network layer to the UI (game events) are handled in DLUGUI, and the events in this interface are only things necessary for one GUI component to get GUI information.

Author:
Eric Scharff

Method Summary
 void beginVotePhase()
           
 void briefingEnded()
           
 void callForVote(java.lang.String proposalID)
           
 void castVote(Proposal proposal, int vote)
           
 void createNewGame(java.lang.String name)
           
 void editingComplete(Proposal proposal)
           
 java.awt.Color getColor(int turnNumber)
           
 java.awt.Color getColor(Player player)
           
 java.awt.Color getColor(Proposal proposal)
           
 Player getCurrentPlayer()
           
 MapView getMapView()
           
 Player getPlayer(int turnNumber)
           
 java.util.HashMap getPropViz()
           
 GameRoot getRoot()
           
 void gotUserMessage(java.awt.Color color)
           
 void joinGame(java.lang.String name, int playerNumber)
           
 void plistRefreshed()
           
 void proposalDoubleClicked(Proposal p)
           
 void refreshGameList()
           
 void rejoinGame(java.lang.String name, int playerNumber)
           
 void setHelpContent(java.lang.String location)
           
 void setSelectedProposal(Proposal proposal)
           
 void votingTimerExpired()
           
 
Methods inherited from interface dd.util.DLUGUI
availableGames, beginNegotiationPhase, beginSetupPhase, doneNotify, endVote, errorMessage, gameEnded, gameMessage, joinedGame, notifyUser, prepareForVotingOn, setNumber, setRoot, startBriefing, startVote, startVotingTimer
 
Methods inherited from interface dd.util.UI
disableUI, enableUI, lostServer, pauseUI, unpauseUI
 

Method Detail

getColor

public java.awt.Color getColor(Player player)

getColor

public java.awt.Color getColor(Proposal proposal)

getColor

public java.awt.Color getColor(int turnNumber)

getMapView

public MapView getMapView()

getPropViz

public java.util.HashMap getPropViz()

setSelectedProposal

public void setSelectedProposal(Proposal proposal)

getCurrentPlayer

public Player getCurrentPlayer()

getPlayer

public Player getPlayer(int turnNumber)

setHelpContent

public void setHelpContent(java.lang.String location)

proposalDoubleClicked

public void proposalDoubleClicked(Proposal p)

plistRefreshed

public void plistRefreshed()

editingComplete

public void editingComplete(Proposal proposal)

getRoot

public GameRoot getRoot()

gotUserMessage

public void gotUserMessage(java.awt.Color color)

refreshGameList

public void refreshGameList()

rejoinGame

public void rejoinGame(java.lang.String name,
                       int playerNumber)

joinGame

public void joinGame(java.lang.String name,
                     int playerNumber)

createNewGame

public void createNewGame(java.lang.String name)

briefingEnded

public void briefingEnded()

callForVote

public void callForVote(java.lang.String proposalID)

beginVotePhase

public void beginVotePhase()

votingTimerExpired

public void votingTimerExpired()

castVote

public void castVote(Proposal proposal,
                     int vote)