Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
K
L
M
O
P
R
S
T
U
V
W
X
Y
A
accept(File)
- Method in class
TXTFilter
actionPerformed(ActionEvent)
- Method in class
BuildDict
ActionListeners for the Dictionary Building GUI.
actionPerformed(ActionEvent)
- Method in class
LocalScrabble
actionPerformed(ActionEvent)
- Method in class
RemoteScrabble
addEnd(Letter)
- Method in class
Word
addFront(Letter)
- Method in class
Word
addLetter(char, char, int, int, boolean)
- Method in class
ScrabbleBuilder
addLetterMove(LetterMove)
- Method in class
Move
addLetters(List)
- Method in class
Rack
Adds letters to the Rack.
addPlayer(String, String)
- Method in class
Game
addScore(int)
- Method in class
Player
addWords(String)
- Static method in class
Dictionary
advance()
- Method in class
SublistIterator
allLetters(List, int)
- Method in class
Word
alphabet
- Variable in class
ScrabbleBuilder
atEnd()
- Method in class
SublistIterator
B
Bag
- class
Bag
.
This class contains the bag of letters for a current ScrabbleBuilder.
Bag(ScrabbleBuilder)
- Constructor for class
Bag
Constructs a new bag for a given Scrabblebuilder
Board
- class
Board
.
This class creates a board for a given ScrabbleBuilder.
Board(ScrabbleBuilder)
- Constructor for class
Board
Constructs a board given a ScrabbleBuilder
b
as input.
Board(Square[][])
- Constructor for class
Board
Constructs a board given a
Square
array
arr
as input.
BuildDict
- class
BuildDict
.
This class builds a GUI to enable dictionary editing.
BuildDict()
- Constructor for class
BuildDict
Constructor to build a Dictionary Building GUI.
bag
- Variable in class
Game
blank
- Variable in class
Letter
board
- Variable in class
Game
C
Client
- class
Client
.
This class creates a client from the Scrabble lobby.
Client()
- Constructor for class
Client
centre
- Variable in class
Square
centrepressed
- Variable in class
Square
centrerollover
- Variable in class
Square
checkDictionary(String)
- Method in class
Client
Method that checks to see whether the client has the dictionary that the server is using.
checkValid(String, List)
- Method in class
MoveStrategy
clear()
- Method in class
Square
clearWords()
- Method in class
Move
clientLeftGame(int)
- Method in class
Client
Passes information to the RemoteScrabble game, informing it that a client with specific
uid
has left the game.
clientLeftGame(int)
- Method in class
RemoteScrabble
Locks out a player if they have left the game.
clientLeftLobby(int)
- Method in class
Client
Removes a specific client with
uid
from the lobby interface.
clientServerException(Exception)
- Method in class
Client
Method to display an exception dialog to the client, informing them that the server has errored.
clone()
- Method in class
Board
Clones the current board.
clone()
- Method in class
Letter
clone()
- Method in class
Square
close()
- Method in class
Client
Method to close the client's input/output streams, and finally close the client's socket.
close()
- Method in class
Server
Closes all server sockets, and attempts to close all ServerThreads.
close()
- Method in class
ServerThread
Closes the ServerThread
copyDictToDictionaries(File, String)
- Static method in class
Dictionary
createAndShowGUI()
- Static method in class
LocalScrabble
Creates the LocalScrabble instance, displays the player's GUI interface.
createAndShowGUI(int, int)
- Static method in class
RemoteScrabble
Creates the RemoteScrabble instance, displays the player's GUI interface.
createClient(String)
- Method in class
Client
Creates an IRS client.
createDownloadingDialog()
- Method in class
Client
Method to create a dialog showing the player that a dictionary is being downloaded from the server.
createServer()
- Method in class
Server
Creates a server.
createUI(JComponent)
- Static method in class
MouseOverButtonUI
D
Dictionary
- class
Dictionary
.
This class contains methods for operating on dictionaries.
Dictionary()
- Constructor for class
Dictionary
decodeLetterMove(String)
- Method in class
Client
A method to decode a received letter move, and call the end of the turn.
decryptMessage(String)
- Method in class
ScrabbleProtocol
Rotation method to decrypt the encoded message.
displayExceptionMessage(String)
- Static method in class
Dictionary
Displays a exception box containing general dictionary load failure messages, with sound effect, to notify user of a failed dictionary load.
E
echo(String)
- Method in class
ServerThread
Sends the inputLine to all clients.
encryptMessage(String)
- Method in class
ScrabbleProtocol
Method to encypt a message based on a simple rotation.
endMove(Move, int)
- Method in class
Game
endMoveLight(Move)
- Method in class
Game
endPlayerTurn(Move, int)
- Method in class
RemoteScrabble
Whenever a player ends their turn, this method is called.
endTurn()
- Method in class
Game
equals(Object)
- Method in class
Letter
equals(Object)
- Method in class
Word
F
FirstMoveStrategy
- class
FirstMoveStrategy
.
This class contains methods to generate a computer player's first move.
FirstMoveStrategy()
- Constructor for class
FirstMoveStrategy
findHorizontalWords(Board)
- Method in class
LetterMove
findVerticalWords(Board)
- Method in class
LetterMove
findWords(Board)
- Method in class
Move
fitsX(String, int)
- Method in class
Word
fitsY(String, int)
- Method in class
Word
G
Game
- class
Game
.
This class contains methods for game operation.
Game(ScrabbleBuilder)
- Constructor for class
Game
Game(ScrabbleBuilder, int)
- Constructor for class
Game
gameEnd()
- Method in class
Game
generateMove(Game)
- Method in class
FirstMoveStrategy
generateMove(Game)
- Method in class
MoveStrategy
getAlphabet()
- Method in class
ScrabbleBuilder
getBagSize()
- Method in class
Game
getBagValue()
- Method in class
Bag
Returns an
int
containing the current score sum of the bag.
getBoard()
- Method in class
Game
getBoard()
- Static method in class
ScrabbleBuilder
getColor()
- Method in class
Square
getCurrent()
- Method in class
SublistIterator
getDescription()
- Method in class
Square
getDescription()
- Method in class
TXTFilter
getDisabledIcon(Color)
- Method in class
Square
getEndX()
- Method in class
Word
getEndY()
- Method in class
Word
getGame()
- Method in class
RemoteScrabble
Returns the current game
g
running on RemoteScrabble.
getGameEnded()
- Method in class
Game
getHostLocation()
- Method in class
Client
Returns the location of the host.
getIcon(Color)
- Method in class
Square
getIndexOfLetter(Letter)
- Method in class
Rack
Gets an index from a Letter.
getLastMoveScore()
- Method in class
Game
getLastPlayer()
- Method in class
Game
getLastTurn()
- Method in class
Game
getLength()
- Method in class
Word
getLetter(int)
- Method in class
Bag
Returns a
Letter
at a specific
i in the bag.
getLetter()
- Method in class
LetterMove
getLetter(int)
- Method in class
Rack
Gets a Letter from the Rack at
i
.
getLetter(char)
- Method in class
ScrabbleBuilder
getLetter(String)
- Method in class
ScrabbleBuilder
getLetter()
- Method in class
Square
getLetter(int)
- Method in class
Word
getLetterFromSymbol(char)
- Method in class
Square
getLetterFromSymbol(char)
- Method in class
Word
getLetterMoves()
- Method in class
Move
getLetterScore(Letter)
- Method in class
Square
getLetterScore()
- Method in class
Square
getLetters()
- Method in class
Bag
Returns a
List
, the bag.
getLetters()
- Method in class
Move
getLetters()
- Method in class
ScrabbleBuilder
getList(String, int)
- Static method in class
Dictionary
getListOfLetters()
- Static method in class
Dictionary
getMove()
- Method in class
Client
Returns a
Move
, stored locally as move.
getMoveNumber()
- Method in class
Game
getName()
- Method in class
Player
getPlayer()
- Method in class
Game
getPlayers()
- Method in class
Game
getPremium()
- Method in class
Word
getPremiumSquares()
- Static method in class
ScrabbleBuilder
Returns a List of all the premium squares on the board.
getPressedIcon(Color)
- Method in class
Square
getRack()
- Method in class
Game
getRack()
- Method in class
Player
getRackLetter(int)
- Method in class
Game
getRackSize()
- Method in class
Rack
Returns the size of the Rack.
getRackValue()
- Method in class
Rack
Returns the value of the Rack as an int.
getRemoteScrabble()
- Static method in class
RemoteScrabble
Returns RemoteScrabble.
getReverseIndexOfLetter(Letter)
- Method in class
Rack
Similar to getIndexOfLetter, but only from the back of the rack.
getRolloverIcon(Color)
- Method in class
Square
getRow(int)
- Method in class
Board
Returns a row of squares as an ArrayList.
getScore()
- Method in class
Letter
getScore(Board)
- Method in class
LetterMove
getScore(Board)
- Method in class
Move
getScore()
- Method in class
Player
getScore(Board)
- Method in class
Word
getScrabble()
- Method in class
Client
Returns the current
Scrabble
program instance.
getScrabble()
- Method in class
Game
getScrabble()
- Method in class
LocalScrabble
Gets the current
Scrabble
game.
getScrabble()
- Method in class
RemoteScrabble
Gets the current
Scrabble
game.
getScrabble()
- Method in class
Server
Gets the instance of the Scrabble class.
getScrabble()
- Method in class
ServerThread
Gets Scrabble instance.
getScrabble()
- Method in class
Square
getScrabble()
- Method in class
Word
getServerDictionary()
- Method in class
Client
Returns the dictionary the server is using as a String dictionary name.
getSize()
- Method in class
Bag
Returns an
int
containing the current size of the bag.
getSkipCounter()
- Method in class
Player
getSquare(int, int)
- Method in class
Board
Gets a square on the board at a given
i
,
j
.
getSquare(int, int)
- Method in class
Game
getSquares()
- Method in class
Board
Returns all squares as a List.
getStartX()
- Method in class
Word
getStartY()
- Method in class
Word
getSymbol()
- Method in class
Letter
getText()
- Method in class
Square
getTurn()
- Method in class
Game
getWordScore()
- Method in class
Square
getWords()
- Method in class
Move
getX()
- Method in class
LetterMove
getX()
- Method in class
Square
getY()
- Method in class
LetterMove
getY()
- Method in class
Square
giveLetters(int)
- Method in class
Bag
Allocates a random selection of new letters to a list, the size of the required number of letters.
giveLetters(int, boolean)
- Method in class
Bag
Overloaded method of giveLetters.
H
HistoryParser
- class
HistoryParser
.
This class contains methods to parse a game's XML History.
HistoryParser()
- Constructor for class
HistoryParser
hyperlinkUpdate(HyperlinkEvent)
- Method in class
LinkFollower
I
icon
- Variable in class
Square
inDictionary()
- Method in class
Move
inWord(LetterMove)
- Method in class
Word
incrementSkipCounter()
- Method in class
Player
installUI(JComponent)
- Method in class
MouseOverButtonUI
invalidMoveNotification(int)
- Method in class
Game
isBlank()
- Method in class
Letter
isEmpty()
- Method in class
Bag
Tests to see whether the bag of letters is empty.
isEmpty()
- Method in class
Rack
Return whether a Rack is empty or not.
isGameInProgress()
- Method in class
Server
Returns true/false depending on whether the game of scrabble is in progress.
isHorizontal()
- Method in class
Word
isListening()
- Method in class
Server
Returns true/false depending on whether the server is listening for new client connections.
isLockedOut()
- Method in class
Player
isOccupied(int, int)
- Method in class
Board
Returns a boolean stating whether a specified square is occupied or not (ie whether it has a letter placed on it or not).
isOccupied()
- Method in class
Square
isValid(String, List)
- Method in class
MoveStrategy
isVertical()
- Method in class
Word
K
kick()
- Method in class
ServerThread
Echoes a kick request from the server lobby.
L
Letter
- class
Letter
.
This class defines a Letter.
Letter(char, int)
- Constructor for class
Letter
Letter(char, int, char)
- Constructor for class
Letter
LetterMove
- class
LetterMove
.
This class defines a LetterMove - a specific Letter coupled with x and y co-ordinates.
LetterMove(int, int, Letter)
- Constructor for class
LetterMove
LinkFollower
- class
LinkFollower
.
This class enables simple hyperlink following in the Help System.
LinkFollower(JEditorPane)
- Constructor for class
LinkFollower
LocalScrabble
- class
LocalScrabble
.
LocalScrabble describes the player's GUI interface for the local Scrabble game.
LocalScrabble()
- Constructor for class
LocalScrabble
LocalScrabble creates and initialises a game, ready to accept response from user.
langForGUI
- Static variable in class
Dictionary
String passed to GUI relaying information about what the dictionary is.
letter
- Variable in class
Square
letterMap
- Variable in class
ScrabbleBuilder
letters
- Variable in class
ScrabbleBuilder
loadFromFile(String, String)
- Static method in class
Dictionary
loadOtherDict()
- Static method in class
Dictionary
lockOutPlayer(String, String)
- Method in class
Game
lookup(Word)
- Static method in class
Dictionary
lookup(List, int)
- Static method in class
Dictionary
M
MouseOverButtonUI
- class
MouseOverButtonUI
.
This class extends BasicButtonUI, and provides mouse rollover functionality to enable the border of buttons to change colour.
MouseOverButtonUI()
- Constructor for class
MouseOverButtonUI
Move
- class
Move
.
This class defines a Move - a list of LetterMoves.
Move(Player)
- Constructor for class
Move
Move(Player, List)
- Constructor for class
Move
Move(Player, int, List)
- Constructor for class
Move
Move(Player, Word, Board)
- Constructor for class
Move
MoveStrategy
- class
MoveStrategy
.
Abstract class containing abstract methods to be supered by specific MoveStrategies.
MoveStrategy()
- Constructor for class
MoveStrategy
main(String[])
- Static method in class
BuildDict
Main method to create and show the Dictionary Builder GUI.
main(String[])
- Static method in class
Dictionary
main(String[])
- Static method in class
FirstMoveStrategy
main(String[])
- Static method in class
HistoryParser
main(String[])
- Static method in class
SublistIterator
main(String[])
- Static method in class
Word
O
occupiedAdjacent(int, int)
- Method in class
Board
Returns a boolean stating whether a specified occupied square
i
,
j
is adjacent to any other occupied squares.
ordinary
- Variable in class
Square
ordinarypressed
- Variable in class
Square
ordinaryrollover
- Variable in class
Square
P
Player
- class
Player
.
This abstract class outlines a Player.
Player(String)
- Constructor for class
Player
parse(File)
- Method in class
HistoryParser
parse(String)
- Method in class
HistoryParser
placeLetter(Letter, int, int)
- Method in class
Board
Method to place a given letter on the board on a specific
i
,
j
square.
placeLetter(Letter, int, int)
- Method in class
Game
placeMove(Move, Board)
- Method in class
Board
Returns a boolean stating whether a specified Move.
processInput(String)
- Method in class
ScrabbleProtocol
Processes an encrypted, coded message and returns a String array containing only the useful information.
processOutput(int, int, String)
- Method in class
ScrabbleProtocol
Constructs, codes and encrypts an outgoing message.
R
Rack
- class
Rack
.
This class defines a Rack - a list of Letters.
Rack()
- Constructor for class
Rack
RemoteScrabble
- class
RemoteScrabble
.
RemoteScrabble describes the player's GUI interface for the remote Scrabble game.
RemoteScrabble()
- Constructor for class
RemoteScrabble
RemoteScrabble creates and initialises a game, ready to accept response from the clients.
randomiseBag(long)
- Method in class
Game
receiveDictionary()
- Method in class
Client
Method that accepts the incoming dictionary set from the ServerThread.
removeLetters(List)
- Method in class
Rack
Removes letters from the Rack.
replaceLetters(List)
- Method in class
Bag
Method takes a list of letters and replaces (into the bag) all letters from the
list
resetBlank()
- Method in class
Letter
resetMoveSquares(Move)
- Method in class
Board
Resets a given Move's used squares.
resetSkipCounter()
- Method in class
Player
run()
- Method in class
Client
Client run, starts
createClient
method.
run()
- Method in class
Server
run()
- Method in class
ServerThread
S
ScrabbleBuilder
- class
ScrabbleBuilder
.
This class builds the board and loads the letter set from the information loaded by Dictionary
ScrabbleBuilder()
- Constructor for class
ScrabbleBuilder
ScrabbleBuilder, when invoked, collects the list of letters loaded by Dictionary.
ScrabbleProtocol
- class
ScrabbleProtocol
.
Class to handle message transaction in the remote game.
ScrabbleProtocol()
- Constructor for class
ScrabbleProtocol
Server
- class
Server
.
This class creates a server from the Scrabble lobby.
Server()
- Constructor for class
Server
ServerThread
- class
ServerThread
.
This class handles ServerThread startup, operations and shutdown.
ServerThread(Socket, ServerThread[], String, int, int, String[])
- Constructor for class
ServerThread
Creates a new ServerThread
Square
- class
Square
.
This class builds and controls a Square of the Board.
Square()
- Constructor for class
Square
Square(int, int)
- Constructor for class
Square
Square(Letter)
- Constructor for class
Square
SublistIterator
- class
SublistIterator
.
SublistIterator(List)
- Constructor for class
SublistIterator
saveDataToFile()
- Method in class
BuildDict
Method to save the dictionary changes to file.
saveDataToFile()
- Method in class
LocalScrabble
Saves game history to .XML file.
saveDataToFile()
- Method in class
RemoteScrabble
Saves game history to .XML file.
sendDictionary(String)
- Method in class
ServerThread
Streams a dictionary to the client, so that the client may receive the dictionary that the server wishes to use.
setAscii(char)
- Method in class
Letter
setEndX(int)
- Method in class
Word
setEndY(int)
- Method in class
Word
setGameInProgress(boolean)
- Method in class
Server
Sets whether the scrabble game is in progress or not.
setIsLockedOut()
- Method in class
Player
setLetter(int, Letter)
- Method in class
Rack
Sets the Letter at
i
on the Rack.
setLetter(Letter)
- Method in class
Square
setLetters(List)
- Method in class
Bag
Sets the current bag to be the input
List
letters.
setLetters(List)
- Method in class
Word
setListening(boolean)
- Method in class
Server
Sets whether the server is listening for new client connections
setMessageLine(String)
- Method in class
LocalScrabble
Sets the message line's text.
setMessageLine(String)
- Method in class
RemoteScrabble
Sets the message line's text.
setMessageOutput(int, String)
- Method in class
Client
Method to write to the
ServerThread
.
setNames(int, String)
- Method in class
Client
Sets the name locally of a specific player in the game.
setPremium(int)
- Method in class
Word
setRack(Rack)
- Method in class
Game
setRack(Rack)
- Method in class
Player
setRandomTurn()
- Method in class
Game
setScore(int)
- Method in class
Move
setStartX(int)
- Method in class
Word
setStartY(int)
- Method in class
Word
setSymbol(char)
- Method in class
Letter
setX(int)
- Method in class
Square
setY(int)
- Method in class
Square
skipCounterIncreaseAndTest(int)
- Method in class
Game
squareSymbol()
- Method in class
Square
start()
- Method in class
Client
Client thread start.
start(String, int, int)
- Method in class
Server
Called from the lobby when 'create server' is pressed.
startRemoteGame(long)
- Method in class
RemoteScrabble
Called at start of game to initialise: the random bag racks for all players update all player racks, etc
swapLetterMove(String)
- Method in class
Client
A method to handle an incoming swap letters move.
T
TXTFilter
- class
TXTFilter
.
This class provides a filter to Load dialogs so that only .txt files can be loaded.
TXTFilter()
- Constructor for class
TXTFilter
toAscii()
- Method in class
Letter
toString()
- Method in class
Bag
Returns a
String
representation of the bag.
toString()
- Method in class
Board
Returns a String representation of a square.
toString()
- Method in class
Dictionary
toString()
- Method in class
Letter
toString()
- Method in class
LetterMove
toString()
- Method in class
Move
toString()
- Method in class
Player
toString()
- Method in class
Rack
toString()
- Method in class
Square
toString()
- Method in class
Word
toXml()
- Method in class
Letter
toXml()
- Method in class
LetterMove
toXml()
- Method in class
LocalScrabble
Returns a string containing the current history, as defined in variable
history
.
toXml()
- Method in class
Move
toXml()
- Method in class
Player
toXml()
- Method in class
RemoteScrabble
Returns a string containing the current history, as defined in variable
history
.
U
uninstallUI(JComponent)
- Method in class
MouseOverButtonUI
updateCurrentPlayersRack()
- Method in class
Game
V
validateMove(Move, int)
- Method in class
Board
Returns a boolean after receiving a boolean from m.validateMove(numb).
validateMove(int)
- Method in class
Move
W
Word
- class
Word
.
This class builds and controls Words in the game of scrabble.
Word(int, int, int, int)
- Constructor for class
Word
Word(int, int, int, int, String)
- Constructor for class
Word
X
x
- Variable in class
Square
Y
y
- Variable in class
Square
A
B
C
D
E
F
G
H
I
K
L
M
O
P
R
S
T
U
V
W
X
Y
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes