dd.hurricane
Class Observer
java.lang.Object
dd.ui.GameSupport
dd.hurricane.Main
dd.hurricane.Observer
- All Implemented Interfaces:
- DLUGUI, GUIEvents, UI
- public class Observer
- extends Main
This is an extension of the DLUG (@link Main) class that disables
all of the UI that does anything, so that it can be used to just
observe a running game.
- Author:
- Seth McGinnis
Fields inherited from class dd.hurricane.Main |
amendButton, briefingPanel, buttons, chatPanel, chooseGame, controlManager, controlPanel, currentProposalView, gameRoot, gameRunning, hazardYellow, helpPanel, imageCache, infoPanel, luColorNames, luColors, luNames, main, mainWindow, mapView, metrics, myNumber, netClient, notifyBox, notifying, opinionCancelButton, opinionMaybeButton, opinionNoButton, opinionYesButton, pauseMessage, pauseWindow, pendingAmendment, proposalList, proposalListPane, propViz, requestedRole, retractButton, roleNames, selectedProposal, showViz, singlePlayerMode, splash, state, statusBar, swap, useServiceDiscovery, votePanel, waitMessage |
Methods inherited from class dd.hurricane.Main |
askUserName, beginNegotiationPhase, beginSetupPhase, beginVotePhase, briefingEnded, cacheDlugImages, castVote, createNewGame, disableUI, doAmendButton, doEditButton, doneNotify, doRetractButton, editingComplete, enableUI, endVote, errorMessage, gameEnded, gameMessage, getColor, getColor, getColor, getColor, getColorName, getCurrentPlayer, getMapView, getPlayer, getPropViz, getRoot, gotUserMessage, indicateOpinion, lostServer, makeUI, notifyUser, pauseUI, prepareForVotingOn, proposalDoubleClicked, refreshGameList, setHelpContent, setNetClient, setNumber, setRoot, setSelectedProposal, splash, startBriefing, startVote, unpauseUI, votingTimerExpired |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Observer
public Observer()
availableGames
public void availableGames(java.lang.String[] gameList)
- Specified by:
availableGames
in interface DLUGUI
- Overrides:
availableGames
in class Main
rejoinGame
public void rejoinGame(java.lang.String name,
int requestedPlayer)
- Specified by:
rejoinGame
in interface GUIEvents
- Overrides:
rejoinGame
in class Main
joinGame
public void joinGame(java.lang.String name,
int requestedPlayer)
- Specified by:
joinGame
in interface GUIEvents
- Overrides:
joinGame
in class Main
joinedGame
public void joinedGame()
- Specified by:
joinedGame
in interface DLUGUI
- Overrides:
joinedGame
in class Main
callForVote
public void callForVote(java.lang.String proposalID)
- Specified by:
callForVote
in interface GUIEvents
- Overrides:
callForVote
in class Main
startVotingTimer
public void startVotingTimer()
- Specified by:
startVotingTimer
in interface DLUGUI
- Overrides:
startVotingTimer
in class Main
setButtonStates
public void setButtonStates()
- Overrides:
setButtonStates
in class Main
plistRefreshed
public void plistRefreshed()
- Specified by:
plistRefreshed
in interface GUIEvents
- Overrides:
plistRefreshed
in class Main
main
public static void main(java.lang.String[] args)