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

S

scheduleEndDrawTask() - Method in class pictionary.PictionaryGame
Schedules the next game state update if the conditions within run() are met, the method will be called after drawTimeLimit seconds.
scheduleNextTask(int) - Method in class pictionary.PictionaryGame
Schedules the next game state update, the method will be called after the specified number of seconds.
score - Variable in class pictionary.PictionaryPlayer
The player's score.
send(Message) - Method in class pictionary.pictionaryclient.PictionaryClient
Sends a Message to the server using PictionaryClient.ServerConnection.send(Message).
send(Message) - Method in class pictionary.pictionaryclient.PictionaryClient.ServerConnection
Simply adds a message to PictionaryClient.ServerConnection.outgoingMessages.
send(Message) - Method in class pictionary.pictionaryserver.PictionaryServer.ClientConnection
Adds a message to PictionaryServer.ClientConnection.outgoingMessages.
sendTextBtn - Variable in class pictionary.pictionaryclient.PictionaryClientGUI
A button that can be used for sending the text in PictionaryClientGUI.inputArea.
sendThread - Variable in class pictionary.pictionaryclient.PictionaryClient.ServerConnection
The thread that sends messages to the server.
sendThread - Variable in class pictionary.pictionaryserver.PictionaryServer.ClientConnection
The PictionaryServer.ClientConnection.SendThread instance.
sendToAll(Message) - Method in class pictionary.pictionaryserver.PictionaryServer
Sends a message to all clients.
sendToOne(String, Message) - Method in class pictionary.pictionaryserver.PictionaryServer
Sends a message to one client.
serverDisconnected() - Method in interface pictionary.pictionaryclient.IPictionaryClientCallback
This method is called when the connection to the server is lost.
serverDisconnected() - Method in class pictionary.pictionaryclient.PictionaryClientGUI
 
serverHostName - Variable in class pictionary.pictionaryclient.PictionaryClient
The server's host name.
serverMessageReceived(String) - Method in interface pictionary.pictionaryclient.IPictionaryClientCallback
This method is called when a message from the server sent to all the clients is received.
serverMessageReceived(String) - Method in class pictionary.pictionaryclient.PictionaryClientGUI
 
serverPort - Variable in class pictionary.pictionaryclient.PictionaryClient
The server's port.
serverSocket - Variable in class pictionary.pictionaryserver.PictionaryServer
Responsible for accepting new connections.
serverThread - Variable in class pictionary.pictionaryserver.PictionaryServer
The PictionaryServer.ServerThread instance used for accepting and creating new client connections.
setEnabled(boolean) - Method in class pictionary.pictionaryclient.PictionaryClientGUI.Paper
Enables or disables
setScore(int) - Method in class pictionary.PictionaryPlayer
Set this player's score.
setStatus(int) - Method in class pictionary.PictionaryPlayer
Sets this player's status.
shouldContainData(Message.MessageType) - Static method in class pictionary.message.Message
Determines whether a message of the specified Message.messageType should contain data or not.
shutdown - Variable in class pictionary.pictionaryserver.PictionaryServer
True if the server thread is shut down, else false.
shutDownServer() - Method in class pictionary.pictionaryserver.PictionaryServer
Disconnects all clients and stops accepting new connections.
shutdownServerSocket() - Method in class pictionary.pictionaryserver.PictionaryServer
Clears the queue of incoming messages, shuts down the listener thread, sets the listener thread and ServerSocket to null.
skipEndDrawTasks - Variable in class pictionary.PictionaryGame
Used for avoiding the canceling of an extra draw round from the timer; sometimes a draw round is canceled prematurely by a correct word guess from a player, then we increment this counter.
socket - Variable in class pictionary.pictionaryclient.PictionaryClient.ServerConnection
The socket connected to the server.
SPECTATING - Static variable in class pictionary.PictionaryPlayer
The playing is in the game, but not yet playing.
startDraw(String) - Method in class pictionary.PictionaryPlayer
Informs the player that it is her turn to start drawing a word.
startDraw(String) - Method in class pictionary.pictionaryserver.PictionaryServer.ClientConnection
 
StartDrawData - Class in pictionary.message
The data contained in the MessageData of a Message sent to a player when it is the player's time to draw.
StartDrawData(String, int) - Constructor for class pictionary.message.StartDrawData
The constructor.
startDrawDataMessages - Static variable in class pictionary.message.Message
Contains all the message types that can contain start draw data.
startDrawing(String, int) - Method in interface pictionary.pictionaryclient.IPictionaryClientCallback
This method is called when the player should start drawing a word.
startDrawing(String, int) - Method in class pictionary.pictionaryclient.PictionaryClientGUI
 
startGuessing() - Method in interface pictionary.pictionaryclient.IPictionaryClientCallback
This method is called to notify the client that a player is drawing and that the client can start making guesses.
startGuessing() - Method in class pictionary.pictionaryclient.PictionaryClientGUI
 
startGuessing() - Method in class pictionary.PictionaryPlayer
Informs the player that it can start guessing on the word being drawn.
startGuessing() - Method in class pictionary.pictionaryserver.PictionaryServer.ClientConnection
 
startNewGame() - Method in class pictionary.PictionaryGame
Starts a new game of Pictionary: Resets the players' scores, lets waiting players join in, tells everyone that the game has started, calls PictionaryGame.nextAction() etc.
status - Variable in class pictionary.PictionaryGame
The game's current status.
status - Variable in class pictionary.PictionaryPlayer
The players current status.
StatusData - Class in pictionary.message
Contains information about connected clients, used in the MessageData of certain Messages.
StatusData(List<String>) - Constructor for class pictionary.message.StatusData
The constructor.
statusMessages - Static variable in class pictionary.message.Message
Contains all the message types that can contain status message data.
stopDraw() - Method in class pictionary.PictionaryPlayer
Informs the player that its draw turn is over.
stopDraw() - Method in class pictionary.pictionaryserver.PictionaryServer.ClientConnection
 
stopDrawing() - Method in interface pictionary.pictionaryclient.IPictionaryClientCallback
This method is called to notify the client that it should stop drawing.
stopDrawing() - Method in class pictionary.pictionaryclient.PictionaryClientGUI
 
stopGuessing() - Method in interface pictionary.pictionaryclient.IPictionaryClientCallback
This method is called to notify the client that it should stop guessing, for example when someone made a correct guess or when the drawing player's time is up.
stopGuessing() - Method in class pictionary.pictionaryclient.PictionaryClientGUI
 
stopGuessing() - Method in class pictionary.PictionaryPlayer
Informs the player that the guessing turn is over.
stopGuessing() - Method in class pictionary.pictionaryserver.PictionaryServer.ClientConnection
 
stringDataMessages - Static variable in class pictionary.message.Message
Contains all the message types that can contain string message data.

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