dd.ui
Class Robot
java.lang.Object
dd.ui.Robot
- All Implemented Interfaces:
- DLUGUI, UI
- Direct Known Subclasses:
- AutoPlayer, Simulator
- public class Robot
- extends java.lang.Object
- implements DLUGUI
|
Constructor Summary |
Robot()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tc
protected TurnClient tc
turnNumber
protected int turnNumber
log
protected Map log
Robot
public Robot()
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