Overview
Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
A
B
C
D
E
F
G
H
I
J
L
M
N
O
P
Q
R
S
T
U
W
A
ACCEPT_NAME_BUTTON_LABEL
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
ACCEPT_NAME_BUTTON_MNEMONIC
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
ACCEPT_NAME_BUTTON_NUMBER
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
ACCEPT_NAME_BUTTON_TOOL_TIP
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
addLocalPlayerMessageToMessageArea(String)
- Method in class thegame.client.
GameClient.GameScreen
Adds toBeAdded with the local player name and current time to messageArea.
addRemotePlayerMessageToMessageArea(String)
- Method in class thegame.client.
GameClient.GameScreen
Adds toBeAdded with the remote player name and current time to messageArea.
addTextToMessageArea(String)
- Method in class thegame.client.
GameClient.GameScreen
Adds toBeAdded to messageArea.
administratorPassword
- Variable in class thegame.server.
GameServer
The administrator password.
allButtons
- Variable in class thegame.client.
GameClient.StartScreen
References all the buttons.
allButtons
- Variable in class thegame.client.
GameClient.GameScreen
References all the buttons.
applet
- Static variable in class thegame.client.
GameClient
References the GameClient.
B
bringUpGameScreen(boolean, boolean, String)
- Method in class thegame.client.
GameClient
Empties the applet window and brings up a GameScreen.
bringUpStartScreen(boolean)
- Method in class thegame.client.
GameClient
Empties the applet window and brings up a StartScreen.
BUTTON_ACTION_LISTENERS
- Variable in class thegame.client.
GameClient.StartScreen
References the ActionListeners for all the buttons.
BUTTON_ACTION_LISTENERS
- Variable in class thegame.client.
GameClient.GameScreen
References ActionListeners that will be set to the buttons.
BUTTON_INSETS
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
BUTTON_INSETS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
BUTTON_LABELS
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
BUTTON_LABELS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
BUTTON_MNEMONICS
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
BUTTON_MNEMONICS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
BUTTON_PANEL_COLS
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
BUTTON_PANEL_COLS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
BUTTON_PANEL_HEIGHT
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
BUTTON_PANEL_ROWS
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
BUTTON_PANEL_ROWS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
BUTTON_PANEL_WIDTH
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
BUTTON_TOOL_TIPS
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
BUTTON_TOOL_TIPS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
C
changePlayerHighlight(boolean)
- Method in class thegame.client.
GameClient.GameScreen
Changes the highlight of players - sets one highlighted and the other unhighlighted.
CHECK_BOX_INSETS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
CHECK_BOX_ITEM_LISTENERS
- Variable in class thegame.client.
GameClient.GameScreen
References ItemListeners that will be set to the checkboxes.
CHECK_BOX_LABELS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
CHECK_BOX_MNEMONICS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
CHECK_BOX_PANEL_COLS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
CHECK_BOX_PANEL_ROWS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
CHECK_BOX_TOOL_TIPS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
CHECK_BOXES_FONT
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
checkBoxes
- Variable in class thegame.client.
GameClient.GameScreen
References all the checkboxes.
CIRCLED_ICON
- Static variable in class thegame.client.
GameSquare
CIRCLED_ICON_PATH
- Static variable in class thegame.client.
GameSquare
CLEAR_MESSAGE_AREA_BUTTON_NUMBER
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
CLEAR_MESSAGE_AREA_LABEL
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
CLEAR_MESSAGE_AREA_MNEMONIC
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
CLEAR_MESSAGE_AREA_TOOL_TIP
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
close()
- Method in class thegame.shared.
GameConnection
Closes the socket.
CLOSED_ICON
- Static variable in class thegame.client.
GameSquare
CLOSED_ICON_PATH
- Static variable in class thegame.client.
GameSquare
COMMUNICATIONS_ERROR_MESSAGE
- Static variable in class thegame.server.
GameServerKiller
The message shown when a communications error occurs.
componentIsEnabled
- Variable in class thegame.client.
GameClient.StartScreen
Is used by setNeededComponentsEnabled(boolean) to save and load the state of the components that need to be enabled or disabled.
connection
- Variable in class thegame.client.
GameClient
The connection to the server.
connections
- Variable in class thegame.server.
GameServer
Is used to hold all the ongoing GameServerConnections.
CREATE_GAME_BUTTON_CLICK_MESSAGE_OPTIONS
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
CREATE_GAME_BUTTON_CLICK_MESSAGE_TEXT
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
CREATE_GAME_BUTTON_CLICK_MESSAGE_TITLE
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
CREATE_GAME_BUTTON_LABEL
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
CREATE_GAME_BUTTON_MNEMONIC
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
CREATE_GAME_BUTTON_NUMBER
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
CREATE_GAME_BUTTON_TOOL_TIP
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
CROSSED_ICON
- Static variable in class thegame.client.
GameSquare
CROSSED_ICON_PATH
- Static variable in class thegame.client.
GameSquare
D
DEFAULT_ICON
- Static variable in class thegame.client.
GameSquare
DEFAULT_ICON_PATH
- Static variable in class thegame.client.
GameSquare
DEFAULT_SERVER_PORT
- Static variable in interface thegame.shared.
GameConnectionConstants
The default port the GameServer listens on.
DELIMITER
- Static variable in interface thegame.shared.
GameConnectionConstants
Is used for separating message atoms.
destroy()
- Method in class thegame.client.
GameClient
Cleans up the data members that should be cleaned (connection to the server).
E
ENABLED_AT_STARTUP
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
The state of the buttons at startup.
ENTER_MESSAGE_FIELD_LABEL_LABEL
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
ENTER_NAME_FIELD_COLS
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
ENTER_NAME_FIELD_LABEL_TEXT
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
ENTER_NAME_FIELD_MNEMONIC
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
enterMessageField
- Variable in class thegame.client.
GameClient.GameScreen
Accepts a message that can be sent to the remote player.
enterMessageFieldLabel
- Variable in class thegame.client.
GameClient.GameScreen
The label for enterMessageField.
enterNameField
- Variable in class thegame.client.
GameClient.StartScreen
Is used by the player to enter his/her name.
enterNameFieldLabel
- Variable in class thegame.client.
GameClient.StartScreen
The label for enterNameField.
F
fatalError(String)
- Method in class thegame.client.
GameClient
Shuts down the GameClient.
FIELD_SIZE
- Static variable in class thegame.client.
GameField
The size of gameField.
findWinningSquares(int[])
- Method in class thegame.client.
GameField
Finds a winning row around the specified position.
FORBIDDEN_PLAYER_NAME_SUFFIXES
- Static variable in class thegame.server.
GameServer
formatter
- Variable in class thegame.client.
GameClient.GameScreen.Monitor
Is used to convert a time in milliseconds into a HH:MM:SS format.
G
GAME_BUTTONS
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
The buttons that are grouped together.
GAME_RUNNING_BUTTONS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
GAME_STATE_BUTTONS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
gameClient
- Variable in class thegame.client.
GameClientConnection
The GameClient that gets the received messages.
GameClient
- class thegame.client.
GameClient
.
The main class for the game client.
GameClient.GameScreen
- class thegame.client.
GameClient.GameScreen
.
The game screen.
GameClient.GameScreen.Monitor
- class thegame.client.
GameClient.GameScreen.Monitor
.
Is used for counting the elapsed turn time of the active player; also for checking whether the local player has made a move.
GameClient.GameScreen.Monitor(GameClient.GameScreen)
- Constructor for class thegame.client.
GameClient.GameScreen.Monitor
Constructs a Monitor.
GameClient.GameScreen(GameClient, boolean, boolean, String)
- Constructor for class thegame.client.
GameClient.GameScreen
Constructs a GameScreen.
GameClient.StartScreen
- class thegame.client.
GameClient.StartScreen
.
The start screen where the user can select a name and create or join a game.
GameClient.StartScreen(GameClient, boolean)
- Constructor for class thegame.client.
GameClient.StartScreen
Constructs a StartScreen.
GameClient()
- Constructor for class thegame.client.
GameClient
GameClientConnection
- class thegame.client.
GameClientConnection
.
The connection to GameServer on the GameClient side.
GameClientConnection(Socket, GameClient)
- Constructor for class thegame.client.
GameClientConnection
Constructs a GameClientConnection on the specified socket and binds it to the specified GameClient.
GameClientConstants
- interface thegame.client.
GameClientConstants
.
Holds the constants used by GameClient.
GameClientConstants.GameScreenConstants
- interface thegame.client.
GameClientConstants.GameScreenConstants
.
Holds the constants used by StartScreen.
GameClientConstants.StartScreenConstants
- interface thegame.client.
GameClientConstants.StartScreenConstants
.
Holds the constants used by GameScreen.
GameConnection
- class thegame.shared.
GameConnection
.
Defines methods and data members used by GameClientConnection and GameServerConnection.
GameConnection(Socket)
- Constructor for class thegame.shared.
GameConnection
Constructs a GameConnection on the specified socket.
GameConnectionConstants
- interface thegame.shared.
GameConnectionConstants
.
Holds the constants used by GameConnections and GameServer.
gameField
- Variable in class thegame.client.
GameField
The gamefield.
gameField
- Variable in class thegame.client.
GameClient.GameScreen
The gamefield.
GameField
- class thegame.client.
GameField
.
The gamefield.
GameField(boolean)
- Constructor for class thegame.client.
GameField
Constructs a GameField.
gameRunningButtons
- Variable in class thegame.client.
GameClient.GameScreen
References buttons that are enabled only when a game is running.
gameScreen
- Variable in class thegame.client.
GameClient
The game screen.
gameServer
- Variable in class thegame.server.
GameServerConnection
The GameServer the GameServerConnection sends messages to.
GameServer
- class thegame.server.
GameServer
.
The central server that the GameClients connect to.
GameServer(int)
- Constructor for class thegame.server.
GameServer
Constructs a GameServer listening on the specified port.
GameServerConnection
- class thegame.server.
GameServerConnection
.
The connection to GameClient on the GameServer side.
GameServerConnection(Socket, GameServer)
- Constructor for class thegame.server.
GameServerConnection
Constructs a GameServerConnection on the specified socket and binds it to the specified GameServer.
GameServerKiller
- class thegame.server.
GameServerKiller
.
A utility to shut down the game server.
GameServerKiller(Socket)
- Constructor for class thegame.server.
GameServerKiller
Constructs a GameServerKiller.
GameSquare
- class thegame.client.
GameSquare
.
The game square.
GameSquare(int[])
- Constructor for class thegame.client.
GameSquare
Constructs a GameSquare.
gameStateButtons
- Variable in class thegame.client.
GameClient.GameScreen
References buttons that are grouped together.
getImageIcon(String)
- Static method in class thegame.client.
GameClient
Returns an ImageIcon constructed from an image file.
getMessageBody(String)
- Static method in class thegame.shared.
GameConnection
Returns the body of the message, or null if the message has no body.
getMessageContentsAs1DIntArray(String)
- Static method in class thegame.shared.
GameConnection
Returns the contents of the message as int[2], or null if the message has no body.
getMessageContentsAs1DStringArray(String)
- Static method in class thegame.shared.
GameConnection
Returns the contents of the message as a String array, or null if the message has no body.
getMessageContentsAs2DIntArray(String)
- Static method in class thegame.shared.
GameConnection
Returns the contents of the message in the form of int[x][2] (where x is undefined), or null if the message has no body.
getMessageContentsAsBoolean(String)
- Static method in class thegame.shared.
GameConnection
Returns the contents of the message as a boolean value.
getMessageID(String)
- Static method in class thegame.shared.
GameConnection
Returns the type identifier of the message.
getMove()
- Method in class thegame.client.
GameField
Returns the coordinates of the last move made by the local player.
getPlayerDrawingCircles()
- Method in class thegame.server.
GameServerConnection
Returns the isPlayerDrawingCircles property.
getPlayerName()
- Method in class thegame.server.
GameServerConnection
Returns the name of the player on the GameClient side
getPosition()
- Method in class thegame.client.
GameSquare
Returns the position property
getReadyToSendForm(int, String[])
- Static method in class thegame.shared.
GameConnection
Returns the method arguments in a form that is ready to be sent as a message.
getRemotePlayer()
- Method in class thegame.server.
GameServerConnection
Returns the remotePlayer property.
getWinningSquares()
- Method in class thegame.client.
GameField
Returns the coordinates of the winning squares, or null if the local player has made no winning move.
H
handleCreateGameMessage(GameServerConnection, boolean)
- Method in class thegame.server.
GameServer
Handles a message to create a new game.
handleJoinGameFailedMessage()
- Method in class thegame.client.
GameClient.StartScreen
Handles a message from the server indicating that an attempt to join a player failed.
handleJoinGameMessage(GameServerConnection, String)
- Method in class thegame.server.
GameServer
Handles a message to join a game.
handleJoinGameSucceededMessage(boolean)
- Method in class thegame.client.
GameClient.StartScreen
Handles a message from the server indicating that an attempt to join a player succeeded.
handleMessage(String)
- Method in class thegame.client.
GameClient
Based on the type identifier of the message, calls the needed methods from either StartScreen or GameScreen.
handleMoveMadeMessage(int[])
- Method in class thegame.client.
GameClient.GameScreen
Handles a message from the server indicating that the remote player made a move.
handleNewGameAcceptedMessage()
- Method in class thegame.client.
GameClient.GameScreen
Handles a message from the server indicating that the remote player accepted a new game.
handleNewGameRefusedMessage()
- Method in class thegame.client.
GameClient.GameScreen
Handles a message from the server indicating that the remote player refused a new game.
handleNewGameRequestedMessage()
- Method in class thegame.client.
GameClient.GameScreen
Handles a message from the server indicating that the remote player requested for a new game.
handlePlayerDroppedMessage()
- Method in class thegame.client.
GameClient.GameScreen
Handles a message from the server indicating that the remote player dropped the local player.
handlePlayerJoinedMessage(String)
- Method in class thegame.client.
GameClient.GameScreen
Handles a message from the server indicating that a remote player joined the game.
handlePlayerListMessage(String[])
- Method in class thegame.client.
GameClient.StartScreen
Handles a message from the server containing the list of waiting players.
handlePlayerMessage(GameServerConnection, String)
- Method in class thegame.server.
GameServer
Handles the messages sent from player to system (i.e. from GameClientConnection to GameServer).
handlePlayerNameMessage(GameServerConnection, String)
- Method in class thegame.server.
GameServer
Handles a message that establishes the name of a player.
handlePlayerNameNotOKMessage(String)
- Method in class thegame.client.
GameClient.StartScreen
Handles a message from the server indicating that the entered name could not be accepted.
handlePlayerNameOKMessage()
- Method in class thegame.client.
GameClient.StartScreen
Handles a message from the server indicating that the entered name had been validated.
handlePlayerQuitMessage()
- Method in class thegame.client.
GameClient.GameScreen
Handles a message from the server indicating that the remote player quit.
handlePlayerQuitMessage(GameServerConnection)
- Method in class thegame.server.
GameServer
Handles a message that reports the departure of a player.
handlePlayerReturnedToStartScreenMessage()
- Method in class thegame.client.
GameClient.GameScreen
Handles a message from the server indicating that the remote player returned to start screen.
handlePlayerReturnedToStartScreenMessage(GameServerConnection)
- Method in class thegame.server.
GameServer
Handles a message that reports that a player returned to start screen
handlePlayerSurrenderedMessage()
- Method in class thegame.client.
GameClient.GameScreen
Handles a message from the server indicating that the remote player surrenderer.
handlePlayerWaitedForNewPlayerMessage(GameServerConnection)
- Method in class thegame.server.
GameServer
handleReadyForPlayerListMessage(GameServerConnection)
- Method in class thegame.server.
GameServer
Handles a message that reports that a player is ready to receive a playerlist.
handleShutdownMessage(GameServerConnection, String)
- Method in class thegame.server.
GameServer
Shuts down GameServer if the password is correct.
handleTextMessage(String)
- Method in class thegame.client.
GameClient.GameScreen
Handles a message from the server indicating that the remote player sent a message.
handleWinningMoveMadeMessage(int[][])
- Method in class thegame.client.
GameClient.GameScreen
Handles a message from the server indicating that the remote player made a winning move.
HIGHLIGHTED_CIRCLED_ICON
- Static variable in class thegame.client.
GameSquare
HIGHLIGHTED_CIRCLED_ICON_PATH
- Static variable in class thegame.client.
GameSquare
HIGHLIGHTED_CIRCLED_WINNING_ICON
- Static variable in class thegame.client.
GameSquare
HIGHLIGHTED_CIRCLED_WINNING_ICON_PATH
- Static variable in class thegame.client.
GameSquare
HIGHLIGHTED_CROSSED_ICON
- Static variable in class thegame.client.
GameSquare
HIGHLIGHTED_CROSSED_ICON_PATH
- Static variable in class thegame.client.
GameSquare
HIGHLIGHTED_CROSSED_WINNING_ICON
- Static variable in class thegame.client.
GameSquare
HIGHLIGHTED_CROSSED_WINNING_ICON_PATH
- Static variable in class thegame.client.
GameSquare
host
- Variable in class thegame.client.
GameClient
The IP address of the server.
HOST_PARAMETER_NAME
- Static variable in interface thegame.client.
GameClientConstants
HOST_PARAMETER_NOT_FOUND_TEXT
- Static variable in interface thegame.client.
GameClientConstants
I
in
- Variable in class thegame.shared.
GameConnection
Used for reading from the socket.
increaseLocalPlayerScore()
- Method in class thegame.client.
GameClient.GameScreen
Increases the local player's score and updates the interface.
increaseRemotePlayerScore()
- Method in class thegame.client.
GameClient.GameScreen
Increases the remote player's score and updates the interface.
INFORMATION_LABEL_TEXT
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
informationLabel
- Variable in class thegame.client.
GameClient.StartScreen
The label that holds information about the game.
init()
- Method in class thegame.client.
GameClient
Reads the required parameters, connects to the server and brings up a StartScreen.
isAnApplet
- Variable in class thegame.client.
GameClient
Indicates whether the GameClient is running as an applet or as an application.
isChanged
- Variable in class thegame.client.
GameField
Is true if the local player has made a move and the isChanged() method has not been called yet; is false otherwise.
isChanged()
- Method in class thegame.client.
GameField
Returns the isChanged property.
isCircled
- Variable in class thegame.client.
GameSquare
Is true if the square is circled, is false otherwise.
isCircled()
- Method in class thegame.client.
GameSquare
Returns the isCircled property.
isConnectedToAPlayer
- Variable in class thegame.client.
GameClient.GameScreen
True if the player is connected to a remote player; false otherwise.
isCrossed
- Variable in class thegame.client.
GameSquare
Is true if the square is crossed, is false otherwise.
isCrossed()
- Method in class thegame.client.
GameSquare
Returns the isCrossed property.
isDrawingCircles
- Variable in class thegame.client.
GameField
Is true if the local player is drawing circles; is false if the local player is drawing crosses.
isEmpty()
- Method in class thegame.client.
GameSquare
Returns true if the square is empty (neither crossed nor circled); false otherwise.
isFinished
- Variable in class thegame.client.
GameField
Is true if the local player has made a winning move; is false otherwise.
isFinished()
- Method in class thegame.client.
GameField
Returns the isFinished property.
isFirstChange
- Variable in class thegame.client.
GameClient.GameScreen.Monitor
Is true if the player whose time the Monitor is counting has been changed and the Monitor is not aware of it yet; is false otherwise.
isFocusTraversable()
- Method in class thegame.client.
GameSquare
Returns false to disable the square to receive keyboard focus.
isGameRunning
- Variable in class thegame.client.
GameClient.GameScreen
True if a game is running; false otherwise.
isLocalPlayerLastMoveHighlighted
- Variable in class thegame.client.
GameField
Is true if the local player's last move is to be highlighted; is false otherwise.
isLocalPlayerMove
- Variable in class thegame.client.
GameField
Is true if the local player can make a move; is false otherwise.
isLocalPlayerMove
- Variable in class thegame.client.
GameClient.GameScreen
True if it's the local player's turn; false otherwise.
isPlayerDrawingCircles
- Variable in class thegame.server.
GameServerConnection
Is true if the player is drawing circles; is false if the player is drawing crosses.
isReadyForPlayerList
- Variable in class thegame.server.
GameServerConnection
Is true if the player is ready to receive a playerlist; is false otherwise.
isReadyForPlayerList()
- Method in class thegame.server.
GameServerConnection
Returns the isReadyForPlayerList property.
isRemotePlayerLastMoveHighlighted
- Variable in class thegame.client.
GameField
Is true if the remote player's last move is to be highlighted; is false otherwise.
isRequestingForANewGame
- Variable in class thegame.client.
GameClient.GameScreen
True if the local player has sent a request for a new game to the remote player; false otherwise.
isRunning
- Variable in class thegame.shared.
GameConnection
Is true if the thread is running; is false otherwise.
isRunning
- Variable in class thegame.client.
GameClient.GameScreen.Monitor
Is true if the Monitor is running; is false otherwise.
isSetRunning
- Variable in class thegame.client.
GameClient.GameScreen.Monitor
Is true if the Monitor has been set running but the main cycle of the run() method has not been entered yet; is false otherwise.
isStarted
- Variable in class thegame.client.
GameClient.GameScreen.Monitor
Is true if the Monitor has already been started; is false otherwise.
isTickingLocalPlayer
- Variable in class thegame.client.
GameClient.GameScreen.Monitor
Is true if the Monitor is counting the time of the local player; is false if the Monitor is counting the time of the remote player.
isWaiting
- Variable in class thegame.server.
GameServerConnection
Is true when the player is waiting for a joining player; is false otherwise.
isWaiting()
- Method in class thegame.server.
GameServerConnection
Returns the isWaiting property.
isWinningSquare
- Variable in class thegame.client.
GameSquare
Is true if the square has been circled or crossed and is part of a winning row.
J
JOIN_GAME_BUTTON_LABEL
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
JOIN_GAME_BUTTON_MNEMONIC
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
JOIN_GAME_BUTTON_NUMBER
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
JOIN_GAME_BUTTON_TOOL_TIP
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
JOIN_GAME_FAILED_MESSAGE_TEXT
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
JOIN_GAME_FAILED_MESSAGE_TITLE
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
L
LABELS_FONT
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
localPlayerCurrentTimeLabel
- Variable in class thegame.client.
GameClient.GameScreen
Shows the duration of the local player's current turn or of the previous turn if it is not the local player's turn.
localPlayerHighlightedImageIcon
- Variable in class thegame.client.
GameClient.GameScreen
The icon contains the highlighted version of the symbol the local player makes (a cross or a circle).
localPlayerIcon
- Variable in class thegame.client.
GameClient.GameScreen
Holds the icon for the local player.
localPlayerImageIcon
- Variable in class thegame.client.
GameClient.GameScreen
The icon contains the symbol the local player makes (a cross or a circle).
localPlayerLabels
- Variable in class thegame.client.
GameClient.GameScreen
References labels that hold information about the local player.
localPlayerLastMove
- Variable in class thegame.client.
GameField
Holds the coordinates of the last move by the local player.
localPlayerName
- Variable in class thegame.client.
GameClient
The name of the local player.
localPlayerNameLabel
- Variable in class thegame.client.
GameClient.GameScreen
Shows the name of the local player.
localPlayerNameToBeValidated
- Variable in class thegame.client.
GameClient.StartScreen
Is used to temporarily hold the entered player name that has been sent to the server for validation and registration.
localPlayerOverallTimeLabel
- Variable in class thegame.client.
GameClient.GameScreen
Shows the duration of the local player's moves during the current game or the previous game if a new game has not been started yet.
localPlayerScore
- Variable in class thegame.client.
GameClient.GameScreen
The score of the local player.
localPlayerScoreLabel
- Variable in class thegame.client.
GameClient.GameScreen
Shows the score of the local player.
M
main(String[])
- Static method in class thegame.client.
GameClient
Launches GameClient as an application.
main(String[])
- Static method in class thegame.server.
GameServer
Starts up a GameServer on the local machine.
main(String[])
- Static method in class thegame.server.
GameServerKiller
Builds a GameServerKiller.
mainArgs
- Variable in class thegame.client.
GameClient
Contains the command-line arguments passed to the GameClient in case it was run as an application.
MAXIMUM_PLAYER_NAME_LENGTH
- Static variable in class thegame.server.
GameServer
MESSAGE_AREA_COLS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
MESSAGE_AREA_INSETS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
MESSAGE_AREA_LABEL
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
MESSAGE_AREA_MAXIMUM_LENGTH
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
MESSAGE_AREA_ROWS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
messageArea
- Variable in class thegame.client.
GameClient.GameScreen
Holds the messages that have been sent between the players.
MINIMUM_PLAYER_NAME_LENGTH
- Static variable in class thegame.server.
GameServer
monitor
- Variable in class thegame.client.
GameClient.GameScreen
Handles local player moves and updates the time counts.
N
NEW_GAME_BUTTON_CLICK_MESSAGE_TEXT
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
NEW_GAME_BUTTON_CLICK_MESSAGE_TITLE
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
NEW_GAME_BUTTON_LABEL
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
NEW_GAME_BUTTON_MNEMONIC
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
NEW_GAME_BUTTON_NUMBER
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
NEW_GAME_BUTTON_TOOL_TIP
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
NEW_LINE
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
NEW_PLAYER_MESSAGE_TEXT
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
NEW_PLAYER_MESSAGE_TITLE
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
NORMAL_TERMINATION_TEXT
- Static variable in interface thegame.client.
GameClientConstants
NUMBER_OF_BUTTONS
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
NUMBER_OF_BUTTONS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
NUMBER_OF_CHECK_BOXES
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
NUMBER_OF_COMPONENTS_TO_DISABLE
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
NUMBER_OF_GAME_RUNNING_BUTTONS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
NUMBER_OF_GAME_STATE_BUTTONS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
NUMBER_OF_PLAYER_EXISTS_BUTTONS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
O
ON_ACCEPT_NAME_BUTTON_CLICK
- Variable in class thegame.client.
GameClient.StartScreen
The event handler for the "Accept name" button.
ON_CLEAR_MESSAGE_AREA_BUTTON_CLICK
- Variable in class thegame.client.
GameClient.GameScreen
The event handler for the "Clear" button.
ON_CREATE_GAME_BUTTON_CLICK
- Variable in class thegame.client.
GameClient.StartScreen
The event handler for the "Create game" button.
ON_GAME_SQUARE_CLICK
- Variable in class thegame.client.
GameField
The ActionListener for all the GameSquares.
ON_JOIN_GAME_BUTTON_CLICK
- Variable in class thegame.client.
GameClient.StartScreen
The event handler for the "Join game" button.
ON_NEW_GAME_BUTTON_CLICK
- Variable in class thegame.client.
GameClient.GameScreen
The event handler for the "New game" button.
ON_PLAYER_NAMES_LIST_CLICK
- Variable in class thegame.client.
GameClient.StartScreen
The event handler for a selection value change on playerNamesList.
ON_PLAYER_NAMES_LIST_DOUBLE_CLICK
- Variable in class thegame.client.
GameClient.StartScreen
The event handler for a double-click on playerNamesList.
ON_PLAYER_NAMES_LIST_PRESS_ENTER
- Variable in class thegame.client.
GameClient.StartScreen
The event handler for a keypress on playerNamesList.
ON_QUIT_GAME_BUTTON_CLICK
- Variable in class thegame.client.
GameClient.StartScreen
The event handler for the "Quit game" button.
ON_QUIT_GAME_BUTTON_CLICK
- Variable in class thegame.client.
GameClient.GameScreen
The event handler for the "Quit game" button.
ON_QUIT_TO_START_SCREEN_BUTTON_CLICK
- Variable in class thegame.client.
GameClient.GameScreen
The event handler for the "Return to start screen" button.
ON_SEND_MESSAGE_BUTTON_CLICK
- Variable in class thegame.client.
GameClient.GameScreen
The event handler for the "Send" button.
ON_SHOW_LOCAL_PLAYER_LAST_MOVE_CHECK_BOX_CLICK
- Variable in class thegame.client.
GameClient.GameScreen
The event handler for the "Show my last move" checkbox.
ON_SHOW_REMOTE_PLAYER_LAST_MOVE_CHECK_BOX_CLICK
- Variable in class thegame.client.
GameClient.GameScreen
The event handler for the "Show remote player's last move" checkbox.
ON_SURRENDER_GAME_BUTTON_CLICK
- Variable in class thegame.client.
GameClient.GameScreen
The event handler for the "Surrender" button.
ON_WAIT_FOR_NEW_PLAYER_BUTTON_CLICK
- Variable in class thegame.client.
GameClient.GameScreen
The event handler for the "Wait for new player" button.
out
- Variable in class thegame.shared.
GameConnection
Used for writing to the socket.
overallTimeLabel
- Variable in class thegame.client.
GameClient.GameScreen
Shows the duration of the game in progress or of the previous game if a new one has not been started yet.
P
P2P_MOVE_MADE_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
P2P_NEW_GAME_ACCEPTED_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
P2P_NEW_GAME_REFUSED_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
P2P_NEW_GAME_REQUESTED_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
P2P_PLAYER_SURRENDERED_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
P2P_TEXT_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
P2P_WINNING_MOVE_MADE_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
P2S_CREATE_GAME_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
P2S_JOIN_GAME_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
P2S_PLAYER_NAME_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
P2S_PLAYER_QUIT_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
P2S_PLAYER_RETURNED_TO_START_SCREEN_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
P2S_PLAYER_WAITED_FOR_NEW_PLAYER_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
P2S_READY_FOR_PLAYER_LIST_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
PASSWORD_CORRECT_MESSAGE
- Static variable in class thegame.server.
GameServer
The message displayed if the administrator password was correct.
PASSWORD_NOT_CORRECT_MESSAGE
- Static variable in class thegame.server.
GameServer
The message displayed if the administrator password was not correct.
PICTURE_AND_COPYRIGHT_LABEL_TEXT
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
pictureAndCopyrightLabel
- Variable in class thegame.client.
GameClient.StartScreen
The label that holds a picture and a copyright notice.
PLAYER_ACCEPTED_NEW_GAME_MESSAGE_TEXT
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_ACCEPTED_NEW_GAME_MESSAGE_TITLE
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_CIRCLED_ICON
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_CIRCLED_ICON_PATH
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_CROSSED_ICON
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_CROSSED_ICON_PATH
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_DROPPED_MESSAGE_TEXT
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_DROPPED_MESSAGE_TITLE
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_EXISTS_BUTTONS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_HIGHLIGHTED_CIRCLED_ICON
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_HIGHLIGHTED_CIRCLED_ICON_PATH
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_HIGHLIGHTED_CROSSED_ICON
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_HIGHLIGHTED_CROSSED_ICON_PATH
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_LABELS_FONT
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_LABELS_PANEL_COLS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_LABELS_PANEL_ROWS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_LOST_MESSAGE_TEXT
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_LOST_MESSAGE_TITLE
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_NAME_CONTAINS_FORBIDDEN_TEXT_MESSAGE
- Static variable in class thegame.server.
GameServer
The error message sent if the player entered a name that contains forbidden text.
PLAYER_NAME_IN_USE_MESSAGE
- Static variable in class thegame.server.
GameServer
The error message sent if the player entered a name that is already in use.
PLAYER_NAME_NOT_OK_MESSAGE_TITLE
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
PLAYER_NAME_OF_FORBIDDEN_LENGTH_MESSAGE
- Static variable in class thegame.server.
GameServer
The error message sent if the player entered a name of forbidden length.
PLAYER_NAMES_LIST_INSETS
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
PLAYER_NAMES_LIST_LABEL_TEXT
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
PLAYER_NAMES_LIST_PROTOTYPE_VALUE
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
PLAYER_NAMES_LIST_ROWS
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
PLAYER_QUIT_MESSAGE_TEXT
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_QUIT_MESSAGE_TITLE
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_QUIT_TO_START_SCREEN_MESSAGE_TEXT
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_QUIT_TO_START_SCREEN_MESSAGE_TITLE
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_REFUSED_NEW_GAME_MESSAGE_TEXT
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_REFUSED_NEW_GAME_MESSAGE_TITLE
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_REQUESTED_NEW_GAME_MESSAGE_TEXT
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_REQUESTED_NEW_GAME_MESSAGE_TITLE
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_SCORE_LABELS_FONT
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_SURRENDERED_MESSAGE_TEXT
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_SURRENDERED_MESSAGE_TITLE
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_TO_SYSTEM_MESSAGES
- Static variable in interface thegame.shared.
GameConnectionConstants
All the player-to-system messages.
PLAYER_WON_MESSAGE_TEXT
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
PLAYER_WON_MESSAGE_TITLE
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
playerExistsButtons
- Variable in class thegame.client.
GameClient.GameScreen
References buttons that are enabled only when a remote player is present.
playerName
- Variable in class thegame.server.
GameServerConnection
The name of the player on the GameClient side.
playerNameLabels
- Variable in class thegame.client.
GameClient.GameScreen
References labels that show the names of the players.
playerNamesList
- Variable in class thegame.client.
GameClient.StartScreen
Is used to show the names of the players that can be joined.
playerNamesListModel
- Variable in class thegame.client.
GameClient.StartScreen
Represents the contents of playerNamesList.
playerScoreLabels
- Variable in class thegame.client.
GameClient.GameScreen
References labels that show the scores of the players.
playerTimeLabels
- Variable in class thegame.client.
GameClient.GameScreen
References labels that show the times of the players.
port
- Variable in class thegame.client.
GameClient
The TCP port of the server.
PORT_PARAMETER_NAME
- Static variable in interface thegame.client.
GameClientConstants
position
- Variable in class thegame.client.
GameSquare
The position of the square on the gamefield.
PRESSED_ICON
- Static variable in class thegame.client.
GameSquare
PRESSED_ICON_PATH
- Static variable in class thegame.client.
GameSquare
Q
QUIT_GAME_BUTTON_CLICK_MESSAGE_TEXT
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
QUIT_GAME_BUTTON_CLICK_MESSAGE_TITLE
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
QUIT_GAME_BUTTON_LABEL
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
QUIT_GAME_BUTTON_LABEL
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
QUIT_GAME_BUTTON_MNEMONIC
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
QUIT_GAME_BUTTON_MNEMONIC
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
QUIT_GAME_BUTTON_TOOL_TIP
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
QUIT_GAME_BUTTON_TOOL_TIP
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
QUIT_TO_START_SCREEN_BUTTON_CLICK_MESSAGE_TEXT
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
QUIT_TO_START_SCREEN_BUTTON_CLICK_MESSAGE_TITLE
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
QUIT_TO_START_SCREEN_BUTTON_LABEL
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
QUIT_TO_START_SCREEN_BUTTON_MNEMONIC
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
QUIT_TO_START_SCREEN_BUTTON_TOOL_TIP
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
R
readParameter(String)
- Method in class thegame.client.
GameClient
Reads the required parameter from the applet HTML page source or, if GameClient is run as an application, from the commandline arguments.
readParameters()
- Method in class thegame.client.
GameClient
Reads the HOST and PORT parameters from the applet HTML page source, or, if GameClient is run as an application, from the commandline arguments.
REMOTE_PLAYER_START_LABEL
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
remotePlayer
- Variable in class thegame.server.
GameServerConnection
The GameServerConnection referencing the remote player.
remotePlayerCurrentTimeLabel
- Variable in class thegame.client.
GameClient.GameScreen
Shows the duration of the remote player's current turn or of the previous turn if it is not the remote player's turn.
remotePlayerHighlightedImageIcon
- Variable in class thegame.client.
GameClient.GameScreen
The icon contains the highlighted version of the symbol the remote player makes (a cross or a circle).
remotePlayerIcon
- Variable in class thegame.client.
GameClient.GameScreen
Holds the icon for the remote player.
remotePlayerImageIcon
- Variable in class thegame.client.
GameClient.GameScreen
The icon contains the symbol the remote player makes (a cross or a circle).
remotePlayerLabels
- Variable in class thegame.client.
GameClient.GameScreen
References labels that hold information about the remote player.
remotePlayerLastMove
- Variable in class thegame.client.
GameField
Holds the coordinates of the last move by the remote player.
remotePlayerName
- Variable in class thegame.client.
GameClient.GameScreen
The name of the remote player.
remotePlayerNameLabel
- Variable in class thegame.client.
GameClient.GameScreen
Shows the name of the remote player or "(NO PLAYER)" if no remote player has not joined yet or, if the remote player quit, the name of the remote player plus " (QUIT)".
remotePlayerNameToBeJoined
- Variable in class thegame.client.
GameClient.StartScreen
Is used to temporarily hold the name of the remote player the local player wanted to join
remotePlayerOverallTimeLabel
- Variable in class thegame.client.
GameClient.GameScreen
Shows the duration of the remote player's moves during the current game or the previous game if a new game has not been started yet.
remotePlayerScore
- Variable in class thegame.client.
GameClient.GameScreen
The score of the remote player.
remotePlayerScoreLabel
- Variable in class thegame.client.
GameClient.GameScreen
Shows the score of the remote player.
reset(boolean)
- Method in class thegame.client.
GameField
Resets the gamefield.
reset(boolean)
- Method in class thegame.client.
GameSquare
Resets the square - sets it to be empty.
run()
- Method in class thegame.client.
GameClientConnection
run()
- Method in class thegame.client.
GameClient.GameScreen.Monitor
Counts the time of the player whose turn it is.
run()
- Method in class thegame.server.
GameServerKiller
Waits for a server response.
run()
- Method in class thegame.server.
GameServerConnection
The socket is listened on and if a message arrives, it is sent either to gameServer, to remotePlayer, or is discarded.
S
S2P_JOIN_GAME_FAILED_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
S2P_JOIN_GAME_SUCCEEDED_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
S2P_PLAYER_DROPPED_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
S2P_PLAYER_JOINED_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
S2P_PLAYER_LIST_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
S2P_PLAYER_NAME_NOT_OK_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
S2P_PLAYER_NAME_OK_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
S2P_PLAYER_QUIT_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
S2P_PLAYER_RETURNED_TO_START_SCREEN_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
S2P_SERVER_SHUTDOWN_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
SCORE_START_LABEL
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
SEND_MESSAGE_AREA_COLS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
SEND_MESSAGE_AREA_LABEL
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
SEND_MESSAGE_BUTTON_INSETS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
SEND_MESSAGE_BUTTON_LABEL
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
SEND_MESSAGE_BUTTON_LABEL_MNEMONIC
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
SEND_MESSAGE_BUTTON_MNEMONIC
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
SEND_MESSAGE_BUTTON_NUMBER
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
SEND_MESSAGE_BUTTON_TOOL_TIP
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
SEND_MESSAGE_PANEL_COLS
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
send(int)
- Method in class thegame.shared.
GameConnection
Sends a message with id as the type identifier of the message.
send(int, boolean)
- Method in class thegame.shared.
GameConnection
Sends a message with id as the message type identifier and body as the body of the message.
send(int, int[])
- Method in class thegame.shared.
GameConnection
Sends a message with id as the type identifier of the message and body as the body of the message.
send(int, int[][])
- Method in class thegame.shared.
GameConnection
Sends a message with id as the type identifier of the message and body as the body of the message.
send(int, String)
- Method in class thegame.shared.
GameConnection
Sends a message with id as the message type identifier and body as the body of the message.
send(String)
- Method in class thegame.shared.
GameConnection
Sends a string.
sendWaitingPlayersNames()
- Method in class thegame.server.
GameServer
Sends the names of the waiting players to all players who are able to see the list of the waiting players.
SERVER_SHUTDOWN_TEXT
- Static variable in interface thegame.client.
GameClientConstants
serverSocket
- Variable in class thegame.server.
GameServer
The socket that accepts incoming connections.
setCircled()
- Method in class thegame.client.
GameSquare
Sets the square circled and disabled.
setClosed()
- Method in class thegame.client.
GameField
Closes the gamefield.
setClosed()
- Method in class thegame.client.
GameSquare
Toggles the permanently disabled state of the square.
setCrossed()
- Method in class thegame.client.
GameSquare
Sets the square crossed and disabled.
setEnabled(boolean)
- Method in class thegame.client.
GameField
Enables or disables user input.
setEnabled(boolean)
- Method in class thegame.client.
GameSquare
Enables or disables user input.
setHighlighted(boolean)
- Method in class thegame.client.
GameSquare
Toggles the highlighted state of the square.
setInterfaceToGameOverMode(boolean)
- Method in class thegame.client.
GameClient.GameScreen
Sets the interface to game over mode or game running mode.
setInterfaceToLocalPlayerMoveMode(boolean)
- Method in class thegame.client.
GameClient.GameScreen
Changes the interface to reflect whose move it is.
setLocalPlayerLastSquareHighlighted(boolean)
- Method in class thegame.client.
GameField
Sets whether or not the last square that the local player clicked on is to be highlighted.
setNeededComponentsEnabled(boolean)
- Method in class thegame.client.
GameClient.StartScreen
Sets certain predetermined components enabled or disabled.
setNeededComponentsEnabled(boolean)
- Method in class thegame.client.
GameClient.GameScreen
Sets certain predetermined components enabled or disabled.
setPlayerDrawingCircles(boolean)
- Method in class thegame.server.
GameServerConnection
Sets the isPlayerDrawingCircles property.
setPlayerIconsUnhighlighted()
- Method in class thegame.client.
GameClient.GameScreen
Unhighlights the player icons.
setPlayerName(String)
- Method in class thegame.server.
GameServerConnection
Sets the name of the player on the GameClient side
setReadyForPlayerList(boolean)
- Method in class thegame.server.
GameServerConnection
Sets the isReadyForPlayerList property.
setRemotePlayer(GameServerConnection)
- Method in class thegame.server.
GameServerConnection
Sets the remotePlayer property.
setRemotePlayerClickedSquare(int[])
- Method in class thegame.client.
GameField
Sets the specified square clicked by the remote player.
setRemotePlayerLastSquareHighlighted(boolean)
- Method in class thegame.client.
GameField
Sets whether or not the last square that the remote player clicked on is to be highlighted.
setRunning(boolean)
- Method in class thegame.shared.
GameConnection
Sets the isRunning property.
setRunning(boolean)
- Method in class thegame.client.
GameClient.GameScreen.Monitor
Either starts or stops the Monitor thread.
setTickingLocalPlayer(boolean)
- Method in class thegame.client.
GameClient.GameScreen.Monitor
Is used to change the player whose time is being counted.
setWaiting(boolean)
- Method in class thegame.server.
GameServerConnection
Sets the isWaiting property.
setWinningSquare()
- Method in class thegame.client.
GameSquare
Sets the square part of a winning row.
setWinningSquares(int[][])
- Method in class thegame.client.
GameField
Marks the specified squares as a winning row and highlights them in a special way.
SHOW_LOCAL_PLAYER_LAST_MOVE_CHECK_BOX_LABEL
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
SHOW_LOCAL_PLAYER_LAST_MOVE_CHECK_BOX_MNEMONIC
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
SHOW_LOCAL_PLAYER_LAST_MOVE_CHECK_BOX_TOOL_TIP
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
SHOW_REMOTE_PLAYER_LAST_MOVE_CHECK_BOX_LABEL
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
SHOW_REMOTE_PLAYER_LAST_MOVE_CHECK_BOX_MNEMONIC
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
SHOW_REMOTE_PLAYER_LAST_MOVE_CHECK_BOX_TOOL_TIP
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
SHUTDOWN_MESSAGE
- Static variable in interface thegame.shared.
GameConnectionConstants
socket
- Variable in class thegame.shared.
GameConnection
The socket used.
SQUARE_SIZE
- Static variable in class thegame.client.
GameField
The size of a GameSquare in pixels.
SQUARES_TO_WIN
- Static variable in class thegame.client.
GameField
The minimum amount of squares in row needed for winning.
START_SCREEN_PICTURE
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
The picture shown in StartScreen.
START_SCREEN_PICTURE_PATH
- Static variable in interface thegame.client.
GameClientConstants.StartScreenConstants
startScreen
- Variable in class thegame.client.
GameClient
The start screen.
STARTUP_MESSAGE
- Static variable in class thegame.server.
GameServer
The message displayed when GameServer starts.
STARTUP_PASSWORD_PROMPT_MESSAGE
- Static variable in class thegame.server.
GameServer
The password prompt shown at startup.
STARTUP_PASSWORD_PROMPT_MESSAGE
- Static variable in class thegame.server.
GameServerKiller
The password prompt shown at startup.
SURRENDER_GAME_BUTTON_CLICK_MESSAGE_TEXT
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
SURRENDER_GAME_BUTTON_CLICK_MESSAGE_TITLE
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
SURRENDER_GAME_BUTTON_LABEL
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
SURRENDER_GAME_BUTTON_MNEMONIC
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
SURRENDER_GAME_BUTTON_NUMBER
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
SURRENDER_GAME_BUTTON_TOOL_TIP
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
T
terminate()
- Method in class thegame.client.
GameClient
Shuts down the GameClient.
thegame.client
- package thegame.client
Provides classes for the client side.
thegame.server
- package thegame.server
Provides classes for the server side.
thegame.shared
- package thegame.shared
Provides an abstract connection class used both by the server and the client side.
TIME_START_LABEL
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
timeFormatter
- Variable in class thegame.client.
GameClient.GameScreen
Is used to convert a time in milliseconds into a HH:mm:ss format.
tryAndSend(int)
- Method in class thegame.client.
GameClient
Calls send(int) from GameClientConnection.
tryAndSend(int, boolean)
- Method in class thegame.client.
GameClient
Calls send(int, boolean) from GameClientConnection.
tryAndSend(int, int[])
- Method in class thegame.client.
GameClient
Calls send(int, int[][]) from GameClientConnection.
tryAndSend(int, int[][])
- Method in class thegame.client.
GameClient
Calls send(int, int[][]) from GameClientConnection.
tryAndSend(int, String)
- Method in class thegame.client.
GameClient
Calls send(int, String) from GameClientConnection.
U
updateWaitingPlayersNames()
- Method in class thegame.server.
GameServer
Updates the names of the waiting players.
USAGE_MESSAGE
- Static variable in class thegame.server.
GameServerKiller
The message shown when run with an insufficient number of command-line arguments.
W
WAIT_FOR_NEW_PLAYER_BUTTON_CLICK_MESSAGE_TEXT
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
WAIT_FOR_NEW_PLAYER_BUTTON_CLICK_MESSAGE_TITLE
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
WAIT_FOR_NEW_PLAYER_BUTTON_LABEL
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
WAIT_FOR_NEW_PLAYER_BUTTON_MNEMONIC
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
WAIT_FOR_NEW_PLAYER_BUTTON_TOOL_TIP
- Static variable in interface thegame.client.
GameClientConstants.GameScreenConstants
waitingPlayersNamesList
- Variable in class thegame.server.
GameServer
Holds the names of the waiting players in a ready-to-send form.
winningSquares
- Variable in class thegame.client.
GameField
Holds the winning squares if a winning move has been made.
A
B
C
D
E
F
G
H
I
J
L
M
N
O
P
Q
R
S
T
U
W
Overview
Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES