dd.ui
Class Robot

java.lang.Object
  extended bydd.ui.Robot
All Implemented Interfaces:
DLUGUI, UI
Direct Known Subclasses:
AutoPlayer, Simulator

public class Robot
extends java.lang.Object
implements DLUGUI


Field Summary
protected  Map log
           
protected  TurnClient tc
           
protected  int turnNumber
           
 
Constructor Summary
Robot()
           
 
Method Summary
 void addPlayer(Player player)
           
 void availableGames(java.lang.String[] gameList)
           
 void beginNegotiationPhase()
           
 void beginSetupPhase()
           
 void briefingEnded()
           
 void callForVote(Player caller, java.lang.String family)
           
 void disableUI()
           
 void doneNotify(Player p)
           
 void enableUI()
           
 void endVote()
           
 void errorMessage(java.lang.String message)
           
 void gameEnded()
           
 void gameMessage(java.lang.String message)
           
 boolean isRunning()
           
 void joinedGame()
           
 void lostServer()
           
 void newScenario(Scenario s)
           
 void notifyUser(java.lang.String message)
           
 void pauseUI(java.lang.String message)
           
 void prepareForVotingOn(Proposal proposal)
           
 void rankFamily(java.lang.String familyName)
           
 Robot run(java.lang.String gameName)
           
 void secondNotify(Player p, boolean support)
           
 void serverStartup()
           
 void setNumber(java.lang.String turnNumber)
           
 void setRoot(GameRoot r)
           
 void startBriefing(Briefing b)
           
 void startVote()
           
 void startVotingTimer()
           
 void unpauseUI()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tc

protected TurnClient tc

turnNumber

protected int turnNumber

log

protected Map log
Constructor Detail

Robot

public Robot()
Method Detail

serverStartup

public void serverStartup()

run

public Robot run(java.lang.String gameName)

availableGames

public void availableGames(java.lang.String[] gameList)
Specified by:
availableGames in interface DLUGUI

joinedGame

public void joinedGame()
Specified by:
joinedGame 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

startBriefing

public void startBriefing(Briefing b)
Specified by:
startBriefing in interface DLUGUI

briefingEnded

public void briefingEnded()

lostServer

public void lostServer()
Specified by:
lostServer in interface UI

isRunning

public boolean isRunning()

addPlayer

public void addPlayer(Player player)

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 r)
Specified by:
setRoot in interface DLUGUI

newScenario

public void newScenario(Scenario s)

beginNegotiationPhase

public void beginNegotiationPhase()
Specified by:
beginNegotiationPhase in interface DLUGUI

callForVote

public void callForVote(Player caller,
                        java.lang.String family)

secondNotify

public void secondNotify(Player p,
                         boolean support)

doneNotify

public void doneNotify(Player p)
Specified by:
doneNotify in interface DLUGUI

rankFamily

public void rankFamily(java.lang.String familyName)

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