A B C D E G H I J L M N O P R S T U V W

C

callback - Variable in class pictionary.pictionaryclient.PictionaryClient
The IPictionaryClientCallback, in this case PictionaryClientGUI.
category - Variable in class pictionary.PictionaryGame
Some text describing the current word category, for example "Animals".
category - Variable in class pictionary.pictionaryserver.PictionaryServer
The current word category in the Pictionary game.
clear() - Method in class pictionary.pictionaryclient.PictionaryClientGUI.Paper
Clears the canvas.
client - Variable in class pictionary.message.Message
The client.
client - Variable in class pictionary.pictionaryclient.PictionaryClientGUI
The PictionaryClient that we receive and forward events from/to.
clientBroadcastMessageReceived(String, String) - Method in interface pictionary.pictionaryclient.IPictionaryClientCallback
This method is called when a message from a client, broadcasted to all other clients, is received.
clientBroadcastMessageReceived(String, String) - Method in class pictionary.pictionaryclient.PictionaryClientGUI
 
clientConnection - Variable in class pictionary.pictionaryserver.PictionaryServer.ClientConnectionMessage
 
clientConnections - Variable in class pictionary.pictionaryserver.PictionaryServer
The collection that stores all the client connections.
clientDisconnected(PictionaryServer.ClientConnection) - Method in class pictionary.pictionaryserver.PictionaryServer
Removes a client from PictionaryServer.clientConnections, removes the username for PictionaryServer.illegalUsernames and informs all connected clients that someone left the server.
clientID - Variable in class pictionary.pictionaryserver.PictionaryServer.ClientConnection
The clients unique identifier, a String containing it's name.
clientStartedDrawing(String) - Method in interface pictionary.pictionaryclient.IPictionaryClientCallback
This method is called when a client has started drawing.
clientStartedDrawing(String) - Method in class pictionary.pictionaryclient.PictionaryClientGUI
 
close() - Method in class pictionary.pictionaryclient.PictionaryClient.ServerConnection
Closes the connection.
close() - Method in class pictionary.pictionaryserver.PictionaryServer.ClientConnection
Closes this connection and terminates the send and receive threads.
closed - Variable in class pictionary.pictionaryclient.PictionaryClient.ServerConnection
When the connection is closing, closed is set to true.
closed - Variable in class pictionary.pictionaryserver.PictionaryServer.ClientConnection
Is set to true if the client should be disconnected gracefully.
closedByError(String) - Method in interface pictionary.pictionaryclient.IPictionaryClientCallback
This method is called when the connection to the server has been closed.
closedByError(String) - Method in class pictionary.pictionaryclient.PictionaryClient.ServerConnection
Called when an error occurs, probably in PictionaryClient.ServerConnection.receiveThread or PictionaryClient.ServerConnection.sendThread.
closedByError(String) - Method in class pictionary.pictionaryclient.PictionaryClientGUI
 
closedWithError(String) - Method in class pictionary.pictionaryserver.PictionaryServer.ClientConnection
Sends the message to PictionaryServer.connectionToClientClosedWithError(ClientConnection, String) and calls PictionaryServer.ClientConnection.close().
connect(IPictionaryClientCallback) - Method in class pictionary.pictionaryclient.PictionaryClient
Creates a new PictionaryClient.ServerConnection using PictionaryClient.serverHostName and PictionaryClient.serverPort.
connect() - Method in class pictionary.pictionaryserver.PictionaryServer
Creates a new ServerSocket and starts listening for new connections.
connected - Variable in class pictionary.pictionaryclient.PictionaryClientGUI
True if the client is connected to the server, else false.
connectedClients - Variable in class pictionary.message.StatusData
A List containing the names of the connected clients.
connectedClients - Variable in class pictionary.pictionaryclient.PictionaryClient
A collection containing the connected client's unique names.
connectedPlayers - Variable in class pictionary.message.GameStatusData
All the players participating in the Pictionary game.
connectedToServer() - Method in interface pictionary.pictionaryclient.IPictionaryClientCallback
This method is called when the player successfully connected to a server.
connectedToServer() - Method in class pictionary.pictionaryclient.PictionaryClientGUI
 
connection - Variable in class pictionary.pictionaryclient.PictionaryClient
Represents the network connection to the server.
connection - Variable in class pictionary.pictionaryserver.PictionaryServer.ClientConnection
The Socket used for getting the in and output streams.
connectionToClientClosedWithError(PictionaryServer.ClientConnection, String) - Method in class pictionary.pictionaryserver.PictionaryServer
Calls PictionaryServer.clientDisconnected(ClientConnection) and prints a message to standard error output.
correctGuess() - Method in interface pictionary.pictionaryclient.IPictionaryClientCallback
This method is called when the player has made a correct guess.
correctGuess() - Method in class pictionary.pictionaryclient.PictionaryClientGUI
 
correctGuess - Variable in class pictionary.PictionaryGame
Indicates whether a player has made a correct guess.
correctGuess(String) - Method in class pictionary.PictionaryPlayer
Informs the player that he made a correct guess.
correctGuess(String) - Method in class pictionary.pictionaryserver.PictionaryServer.ClientConnection
 
correctGuessBroadcast(String, String) - Method in class pictionary.PictionaryPlayer
Informs the player that a player made a correct guess.
correctGuessBroadcast(String, String) - Method in class pictionary.pictionaryserver.PictionaryServer.ClientConnection
 
correctGuessBroadcastReceived(String, String) - Method in interface pictionary.pictionaryclient.IPictionaryClientCallback
This method is called to notify the client that a player made a correct guess.
correctGuessBroadcastReceived(String, String) - Method in class pictionary.pictionaryclient.PictionaryClientGUI
 
CreateDataMessage(Message.MessageType, String, T) - Static method in class pictionary.message.Message
Creates and returns a Message object containing data.
CreateDataMessage(Message.MessageType, T) - Static method in class pictionary.message.Message
Convenience method.
currentPlayer - Variable in class pictionary.PictionaryGame
The current player; the person who is drawing, is about to draw or was drawing.
currentWord - Variable in class pictionary.PictionaryGame
The current word being drawn.

A B C D E G H I J L M N O P R S T U V W