dd.ui
Class Dummy

java.lang.Object
  extended bydd.ui.Dummy
All Implemented Interfaces:
DLUGUI, GUIEvents, UI

public class Dummy
extends java.lang.Object
implements GUIEvents

This is an implementation of DLUGUI that does nothing whatsoever. It's useful for classes (like the debriefing viewer) that require a DLUGUI for their constructor, but don't actually do anything with it. (Also very useful for things like main()s that are just for testing, etc.)


Constructor Summary
Dummy()
           
 
Method Summary
 void availableGames(java.lang.String[] gameList)
           
 void beginNegotiationPhase()
           
 void beginSetupPhase()
           
 void beginVotePhase()
           
 void briefingEnded()
           
 void callForVote(java.lang.String proposalID)
           
 void castVote(Proposal proposal, int vote)
           
 void createNewGame(java.lang.String name)
           
 void disableUI()
           
 void doneNotify(Player p)
           
 void editingComplete(Proposal proposal)
           
 void enableUI()
           
 void endVote()
           
 void errorMessage(java.lang.String message)
           
 void gameEnded()
           
 void gameMessage(java.lang.String message)
           
 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 joinedGame()
           
 void joinGame(java.lang.String name, int playerNumber)
           
 void lostServer()
           
 void notifyUser(java.lang.String message)
           
 void pauseUI(java.lang.String message)
           
 void plistRefreshed()
           
 void prepareForVotingOn(Proposal proposal)
           
 void proposalDoubleClicked(Proposal p)
           
 void refreshGameList()
           
 void rejoinGame(java.lang.String name, int playerNumber)
           
 void setHelpContent(java.lang.String location)
           
 void setNumber(java.lang.String turnNumber)
           
 void setRoot(GameRoot root)
           
 void setSelectedProposal(Proposal proposal)
           
 void startBriefing(Briefing briefing)
           
 void startVote()
           
 void startVotingTimer()
           
 void unpauseUI()
           
 void votingTimerExpired()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dummy

public Dummy()
Method Detail

getColor

public java.awt.Color getColor(Player player)
Specified by:
getColor in interface GUIEvents

getColor

public java.awt.Color getColor(Proposal proposal)
Specified by:
getColor in interface GUIEvents

getColor

public java.awt.Color getColor(int turnNumber)
Specified by:
getColor in interface GUIEvents

getMapView

public MapView getMapView()
Specified by:
getMapView in interface GUIEvents

getPropViz

public java.util.HashMap getPropViz()
Specified by:
getPropViz in interface GUIEvents

setSelectedProposal

public void setSelectedProposal(Proposal proposal)
Specified by:
setSelectedProposal in interface GUIEvents

getCurrentPlayer

public Player getCurrentPlayer()
Specified by:
getCurrentPlayer in interface GUIEvents

getPlayer

public Player getPlayer(int turnNumber)
Specified by:
getPlayer in interface GUIEvents

setHelpContent

public void setHelpContent(java.lang.String location)
Specified by:
setHelpContent in interface GUIEvents

proposalDoubleClicked

public void proposalDoubleClicked(Proposal p)
Specified by:
proposalDoubleClicked in interface GUIEvents

plistRefreshed

public void plistRefreshed()
Specified by:
plistRefreshed in interface GUIEvents

editingComplete

public void editingComplete(Proposal proposal)
Specified by:
editingComplete in interface GUIEvents

getRoot

public GameRoot getRoot()
Specified by:
getRoot in interface GUIEvents

gotUserMessage

public void gotUserMessage(java.awt.Color color)
Specified by:
gotUserMessage in interface GUIEvents

refreshGameList

public void refreshGameList()
Specified by:
refreshGameList in interface GUIEvents

rejoinGame

public void rejoinGame(java.lang.String name,
                       int playerNumber)
Specified by:
rejoinGame in interface GUIEvents

joinGame

public void joinGame(java.lang.String name,
                     int playerNumber)
Specified by:
joinGame in interface GUIEvents

createNewGame

public void createNewGame(java.lang.String name)
Specified by:
createNewGame in interface GUIEvents

briefingEnded

public void briefingEnded()
Specified by:
briefingEnded in interface GUIEvents

callForVote

public void callForVote(java.lang.String proposalID)
Specified by:
callForVote in interface GUIEvents

beginVotePhase

public void beginVotePhase()
Specified by:
beginVotePhase in interface GUIEvents

votingTimerExpired

public void votingTimerExpired()
Specified by:
votingTimerExpired in interface GUIEvents

castVote

public void castVote(Proposal proposal,
                     int vote)
Specified by:
castVote in interface GUIEvents

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