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

A

AboutBox - class AboutBox.
AboutBox.java Creates about box inside the top bar menu of the gui suite frame.
AboutBox() - Constructor for class AboutBox
 
AboutBoxStarter - class AboutBoxStarter.
AboutBoxStarter.java Creates an AboutBox menu Created: Mon Nov 12 19:51:54 2001
acceptGridClick(int, int) - Method in class BoardGUIAnim
 
acceptGridClick(int, int) - Method in interface GridClickAcceptor
Tells the GridClickAcceptor to process a move at the specified row and column.
acceptGridClick(int, int) - Method in class TestFrame
 
actionPerformed(ActionEvent) - Method in class AboutBoxStarter
 
actionPerformed(ActionEvent) - Method in class GameGrid
The grid checks if this is a "move tick" action, and if so, updates the tick, otherwise, detects clicks.
actionPerformed(ActionEvent) - Method in class GameStarter
 
actionPerformed(ActionEvent) - Method in class Quitter
 
add(Component) - Method in class GameGrid
Adds a button to the end of the grid.
add(Component, int) - Method in class GameGrid
Adds a button at the position specified in the grid.
add(Component, int, int) - Method in class GameGrid
Adds a button at the position specified in the grid.
add(Object) - Method in class LoopedList
Adds object to list
addClient(Writer) - Method in class ClientList
 
addCString(char[]) - Method in class Trie
 
addString(String) - Method in class Trie
Add a string to the trie, subsequent calls of isWord(s) will return true
adjacent(int, int, int, int) - Static method in class GameGrid
Returns if two indicated coordinates are next to each other.
ALPH_SIZE - Static variable in class Trie
 

B

BejeweledGamePiece - class BejeweledGamePiece.
BejeweledGamePiece extends GamePiece and implements GraphicsObject There are 7 different types of jeweles.
BejeweledModel - class BejeweledModel.
BejeweledModel extends the abstract class GameModel.
BLANK - Static variable in class PuzzleConsts
 
BoardGUI - class BoardGUI.
This is the generic GUI representation for any GameModel
BoardGUIAnim - class BoardGUIAnim.
This is the generic GUI representation for any GameModel
BoggleModel - class BoggleModel.
 
BoggleModel() - Constructor for class BoggleModel
Construct BoggleModel,Only constructs trie from dictionary file if it is the first time playing game, else it uses previously constructed trie*.

C

CBlackGamePiece - class CBlackGamePiece.
CBlackGamePiece extends GamePiece and implements GraphicsObject.
CBlankGamePiece - class CBlankGamePiece.
CBlankGamePiece extends GamePiece and implements GraphicsObject.
charToIndex(char) - Method in class Trie
 
ChatRoomConstants - interface ChatRoomConstants.
 
childAt(char) - Method in class Trie
 
Client - class Client.
Client.java Created: Wed May 23 11:39:14 2001
Client(Reader, Writer) - Constructor for class Client
 
ClientList - class ClientList.
ClientList.java Created: Wed May 23 11:00:41 2001
ClientList() - Constructor for class ClientList
 
clone() - Method in class BejeweledModel
 
clone() - Method in class BoardGUI
 
clone() - Method in class BoggleModel
 
clone() - Method in class Connect4Model
 
clone() - Method in class Game
Required in order to create multiple instances of this game with new models
clone() - Method in class GameGUI
 
clone() - Method in class GameModel
for the cloneable interface, allows for the GameModel to create a copy of itself
clone() - Method in class LoopedList
necessary for a new instance of loopedlist to be created with a new game
clone() - Method in class MemoryModel
 
clone() - Method in class PuzzleModel
 
clone() - Method in class StatusPanelGUI
 
clone() - Method in class TicTacToeModel
allows a new model to be created fo the gui
CollectionDice - class CollectionDice.
 
ColMove(int, int) - Method in class BejeweledModel
Returns true if the element located at mycol,myrow will form a column of three or more of the same jewels when swapped with the element located at tempCol, tempRow
colWin() - Method in class Connect4Model
Return true if a column of 4 equal GamePieces has been created.
colWin() - Method in class TicTacToeModel
Return true if a column of 3 of the same pieces has been created
Connect4Model - class Connect4Model.
Connect4Model extends the abstract class GameModel.
coolColumn - Variable in class BoardGUIAnim
 
coolColumn - Variable in class TestFrame
 
coolRow - Variable in class BoardGUIAnim
 
coolRow - Variable in class TestFrame
 
createAboutBox() - Method in class AboutBoxStarter
Creates an aboutbox
createAboutBoxPanel() - Method in class AboutBox
creates aboutboxpanel
createGameMenuItem(GameModel, ImageIcon) - Method in class GameSuiteApplet
Creates Menu for game suite of all the games
createGameMenuItem(GameModel, ImageIcon) - Method in class GameSuiteFrame
Creates Menu for game suite of all the games
createMenuBar() - Method in class GameSuiteApplet
creates the main menu bar at the top of the JDesktopPane
createMenuBar() - Method in class GameSuiteFrame
creates the main menu bar at the top of the JDesktopPane
createViaInternet(String, int) - Static method in class Client
 
CRedGamePiece - class CRedGamePiece.
CRedGamePiece extends GamePiece and implements GraphicsObject.
current() - Method in class LoopedList
Returns current object

D

DataInputReader - class DataInputReader.
DataInputReader.java Created: Tue May 22 14:49:50 2001
DataInputReader(DataInput) - Constructor for class DataInputReader
 
DataOutputWriter - class DataOutputWriter.
DataOutputWriter.java Created: Wed May 23 10:45:45 2001
DataOutputWriter(DataOutput) - Constructor for class DataOutputWriter
 
DEFAULT_HOST - Static variable in interface ChatRoomConstants
 
DEFAULT_PORT - Static variable in interface ChatRoomConstants
 
deliverMessage(Message) - Method in class ClientList
 
deliverMessage(Message) - Method in class DataOutputWriter
 
deliverMessage(Message) - Method in interface Writer
 
diagonalWin() - Method in class TicTacToeModel
Return true if a diagonal of three of the same elements has been created
Dice - class Dice.
 
doQuit() - Method in class Quitter
the function called for any quit event, e.g., window closing or quit menu item for chosen

E

EmptyGamePiece - class EmptyGamePiece.
EmptyGamePiece.java EmptyGamePiece extends GamePiece and implements GraphicsObject.
EmptyGamePiece() - Constructor for class EmptyGamePiece
 
ENTER_WORD_MOVE - Static variable in class BoggleModel
 
equals(GamePiece) - Method in class GamePiece
Returns true if two gampieces have the same description.
equals(Object) - Method in class GameGrid.MoveRecord
Two moves are considered equal if they move the same object.
executeMoves() - Method in class GameGrid
Executes the moves with the default behavior, which is to block the current thread calling until the move is completed.
executeMoves(boolean) - Method in class GameGrid
Begins executing the pending moves.
ExitWhenClosed - class ExitWhenClosed.
This class causes java to exit when a window is closed.
ExitWhenClosed() - Constructor for class ExitWhenClosed
 

F

f(float) - Method in class LinearRealFunction
 
f(float) - Method in class OvershootRealFunction
 
f(float) - Method in interface RealFunction
The function object.
f(float) - Method in class SquareRealFunction
 
f(float) - Method in class TaperRealFunction
 
FindAllPoints() - Method in class MemoryModel
Finds the location of all pairs and stores them into points in an array
findWords(PlayingBoard) - Method in class JoggleWordFinder
Find all words on a Joggle/Boggle board
FIRST - Static variable in class Trie
 
first() - Method in class LoopedList
Returns first object
from - Variable in class GameGrid.MoveRecord
The points to move between.

G

Game - class Game.
This is the generic representation of a game.
GAME_IN_PROGRESS - Static variable in interface GameStatusConstants
 
GAME_LOST - Static variable in interface GameStatusConstants
 
GAME_OVER - Static variable in interface GameStatusConstants
 
GAME_TIED - Static variable in interface GameStatusConstants
 
GAME_WON - Static variable in interface GameStatusConstants
 
Game(GameModel, LoopedList) - Constructor for class Game
Constructor takes in a model, a loopedlist of players and an ImageIcon
GameGrid - class GameGrid.
The GameGrid.
GameGrid.MoveRecord - class GameGrid.MoveRecord.
The MoveRecord class stores a Component to move, a starting point, and an ending point.
GameGrid.MoveRecord(GameGrid, Component, Point, Point) - Constructor for class GameGrid.MoveRecord
Instantiates a new MoveRecord.
GameGrid(int, int) - Constructor for class GameGrid
Instantiates a new SlideGrid with the specified number of rows and columns.
GameGUI - class GameGUI.
GameGUI.java Created: Fri Nov 9 20:36:15 2001
GameGUI(Game, BoardGUI, StatusPanelGUI) - Constructor for class GameGUI
 
GameModel - class GameModel.
abstract game model interface
GameModel() - Constructor for class GameModel
 
GameOverDialog - class GameOverDialog.
GameOverDialog.java Created: Fri Nov 9 23:45:03 2001
GameOverDialog() - Constructor for class GameOverDialog
 
GamePiece - class GamePiece.
This is the generic representation of a GamePiece that has a description and checks if two gamepieces are equal
GamePiece() - Constructor for class GamePiece
 
GameStarter - class GameStarter.
GameStarter.java Created: Mon Nov 12 22:06:40 2001
GameStatusConstants - interface GameStatusConstants.
Set's different constants used in keeping track of status of game
GameSuiteApplet - class GameSuiteApplet.
GameSuiteApplet.java Created: Mon Nov 12 15:47:21 2001
GameSuiteApplet() - Constructor for class GameSuiteApplet
creates a desktop and menu
GameSuiteFrame - class GameSuiteFrame.
GameSuiteFrame.java Creates a Frame that contains the actual game and a menubar and other elements.
GameSuiteFrame() - Constructor for class GameSuiteFrame
creates a desktop and menu
GameSuiteMenu - class GameSuiteMenu.
GameSuiteMenu.java Created: Fri Nov 9 18:22:44 2001
GameSuiteMenu() - Constructor for class GameSuiteMenu
 
getBoardHeight() - Method in class GameModel
Returns the height of the board on which the game is being played
getBoardWidth() - Method in class GameModel
Returns the width of the board on which the game is being played
getColumns() - Method in class GameGrid
Gets the number of columns in this grid
getComponent(int, int) - Method in class GameGrid
Gets the component at this column and row in the grid.
getCount(Image) - Static method in class IconCounterCounter
 
getCurrentPlayer() - Method in class Game
returns the current player in the PlayerList
GetDiceVector() - Method in class CollectionDice
Return vector of dice.
getDictionaryWords() - Method in class BoggleModel
Returns a vector of the dictionary words found for a particular board.
getElement(int, int) - Method in class Matrix
get's an element of the matrix at the specified column and row
GetFaceValue() - Method in class LetterGamePiece
Get String facevalue of dice object.
GetFaceValue() - Method in class MemoryGamePiece
Return int with facevalue of game piece.
GetFaceValue() - Method in class NumGamePiece
returns int with face value
getGameName() - Method in class GameModel
Returns the name of the game
GetGamePiece() - Method in class PiecePointPair
return the GamePiece of the PiecePointPair object.
getGamePieceAt(int, int) - Method in class GameModel
Returns a GamePiece from the board from the specified column and row
getGamePieceAt(int, int) - Method in class PlayingBoard
gets gamepiece located at col and row of board
getGamePieceAt(Point) - Method in class PlayingBoard
gets gamepiece located at specified point of board
getGameStatus() - Method in class Game
 
getGameStatus() - Method in class GameModel
Returns the current status of the game.
getHeight() - Method in class Matrix
returns the height of the matrix
getHeight() - Method in class PlayingBoard
return's the height of the board
getHint() - Method in class BejeweledModel
Returns a Move object of the suggested point that can be moved by the player/computer.
getHint() - Method in class Connect4Model
 
getIfWord() - Method in class RealWord
 
getImageHeight() - Method in class ImagePuzzleIcon
 
getImageIcon() - Method in class BejeweledGamePiece
Returns an ImageIcon
getImageIcon() - Method in class CBlackGamePiece
Returns an ImageIcon
getImageIcon() - Method in class CBlankGamePiece
Returns an ImageIcon
getImageIcon() - Method in class CRedGamePiece
Returns an ImageIcon
getImageIcon() - Method in class EmptyGamePiece
Returns an ImageIcon
getImageIcon() - Method in interface GraphicsObject
 
getImageIcon() - Method in class OGamePiece
Returns an image icon for an O gamepiece.
getImageIcon() - Method in class PuzzlePictureGamePiece
 
getImageIcon() - Method in class XGamePiece
returns myImageIcon
getImageWidth() - Method in class ImagePuzzleIcon
 
getInstance() - Static method in class AboutBoxStarter
Gets the instance of the aboutboxstarter
getInstance() - Static method in class Quitter
 
getLastMoveStatus() - Method in class GameModel
Returns a String representation of the last move's status, implement LastMoveStatusConstants in order to compare the values
getLocation() - Method in class OOGAButton
return's point representing location of button
getMasked(boolean[][]) - Method in class GameGrid
Applies a "mask" to the grid to get the buttons indicated.
getMovementFunction() - Method in class GameGrid
Gets the RealFunction that governs movement.
getMovePeriod() - Method in class GameGrid
Gets the period between move ticks.
getMoveSteps() - Method in class GameGrid
Gets the number of steps (ticks) that a move takes.
getName() - Method in class Game
Returns name of myModel passed into constructor
getName() - Method in class Message
 
getName() - Method in class Player
Returns string of player's name
getNeighbors(int, int) - Method in class Neighborhood
 
getNeighbors(int, int, int) - Method in class Neighborhood
 
getNextClient() - Method in class ThreadedServer
 
getNextMessage() - Method in class DataInputReader
 
getNextMessage() - Method in interface Reader
 
getPlayerWords() - Method in class BoggleModel
Returns a vector of the player's words, with bools on whether they are actually legimiate words or not.
getPlayingBoard() - Method in class Game
returns the model's playingboard
getPlayingBoard() - Method in class GameModel
Returns the playing board on which the game is being played
getPoint() - Method in class Move
 
GetPoint() - Method in class PiecePointPair
Return point, or location, of GamePiece.
getRandom() - Method in class BejeweledGamePiece
Creates an ImageIcon with one of 7 randomly chosen images.
getRows() - Method in class GameGrid
Gets the number of rows in this grid
getScore() - Method in class BejeweledModel
Return the score of the game
getScoreText() - Method in interface ScoreBased
 
getSize() - Method in class MemoryModel
Returns int of size of number of gamepieces.
getStatusDisplay() - Method in class BejeweledModel
 
getStatusDisplay() - Method in class BoggleModel
 
getStatusDisplay() - Method in class Connect4Model
 
getStatusDisplay() - Method in class Game
 
getStatusDisplay() - Method in interface StatusInfo
 
getStatusDisplay() - Method in class TicTacToeModel
 
getString() - Method in class RealWord
 
getText() - Method in class Message
 
getTurnText() - Method in interface TurnBased
 
getType() - Method in class Message
 
getWidth() - Method in class Matrix
returns the width of the matrix
getWidth() - Method in class PlayingBoard
return's the width of the board
getWords() - Method in class Trie
return a List of every word in the Trie
GraphicsObject - interface GraphicsObject.
generic implementation for a graphicsobject.
grid - Variable in class TestFrame
 
GridClickAcceptor - interface GridClickAcceptor.
Used for objects that must be speicified to accept a move at specified coordinates (in the form of a tuple).

H

handleMessage(Message) - Method in interface MessageHandler
 
handleMessage(Message) - Method in class MessagePrinter
 
hasGamePieceAt(int, int) - Method in class GameModel
Checks to see whether or not a GamePiece exists on the board at the specified column and row
hasMovesLeft() - Method in class Connect4Model
Returns true if there are any empty places on the board.
hasStatusInfo() - Method in class Game
 

I

IconCounterCounter - class IconCounterCounter.
IconCounterCounter.java Counts counters of Icons see Astrachan's code for comments Created: Sat Nov 10 08:20:09 2001
IconCounterCounter() - Constructor for class IconCounterCounter
 
IMAGE_XSIZE - Static variable in class PuzzleConsts
 
IMAGE_YSIZE - Static variable in class PuzzleConsts
 
ImagePuzzleIcon - class ImagePuzzleIcon.
ImagePuzzleIcon.java Created: Sat Nov 10 08:11:28 2001
ImagePuzzleIcon(Image, String, Dimension) - Constructor for class ImagePuzzleIcon
 
ImagePuzzleIcon(String, String, Dimension) - Constructor for class ImagePuzzleIcon
 
indexToColumn(int) - Method in class GameGrid
Takes an index, and converts it to a column.
indexToRow(int) - Method in class GameGrid
Takes an index, and converts it to a row.
init() - Method in class GameSuiteApplet
 
initialize() - Method in class Matrix
initialize the matrix to null
initializeMatrix() - Method in class BejeweledModel
Initializes the checkMatrix elements to "O".
initializeSwapMatrix() - Method in class BejeweledModel
Initializes the swapMatrix elements to the elements in myPlayingBoard.
isGameLost() - Method in class GameModel
Returns whether or not the game has been lost
isGameOver() - Method in class Game
Returns true if the game is over
isGameOver() - Method in class GameModel
Returns whether or not the game is over
isGameOver() - Method in class TicTacToeModel
return true if game is over/tied.
isGameTied() - Method in class GameModel
Returns whether or not the game has been tied
isGameWon() - Method in class Connect4Model
Checks if a row, column or diagonal(left or right) of 4 has occured.
isGameWon() - Method in class GameModel
Returns whether or not the game has been won
isGameWon() - Method in class TicTacToeModel
return true if a row, column, or diagonal of 3 of the same elements has been created
IsPushed() - Method in class LetterGamePiece
Returns if button has been pushed, for a given word construction.
isSignIn(Message) - Static method in class Message
 
isSignOut(Message) - Static method in class Message
 
IsSolved() - Method in class MemoryModel
Determines if board has been solved, if user has found all legitimate pairs.
IsSolved() - Method in class PuzzleModel
Determines whether puzzle is Solved.
isTextMessage(Message) - Static method in class Message
 
isThereMove() - Method in class BejeweledModel
Check if there is a move left.
isThereMove() - Method in class Connect4Model
 
isValid(int, int) - Method in class Connect4Model
Returns true if there is no game piece at the specified column and row
isValid(int, int) - Method in class TicTacToeModel
returns true if there is no gamepiece at the specified row and column
isValidCol(int) - Method in class PlayingBoard
Checks if specified column is a valid row of the board
isValidCoordinate(int, int) - Method in class PlayingBoard
returns true if the specified col and row are valid coordinates of the board
isValidCoordinate(Point) - Method in class PlayingBoard
returns true if the point is a valid coordinate of the board
isValidRow(int) - Method in class PlayingBoard
Check's if specified row is a valid row of the board
isWord() - Method in class Trie
 
isWord(String) - Method in class Trie
determine if a word is in the trie

J

JoggleReader - class JoggleReader.
read a file in format one word/per line, e.g., /usr/dict/words and store all words a read in a trie
JoggleReader() - Constructor for class JoggleReader
construct a JoggleReader
JoggleWordFinder - class JoggleWordFinder.
Finds all words on a Joggle/Boggle board
JoggleWordFinder(Trie) - Constructor for class JoggleWordFinder
construct a JoggleWordFinder

L

LastMoveStatusConstants - interface LastMoveStatusConstants.
Sets constants for determining lastmovestatus.
lastSwap - Variable in class BoardGUIAnim
 
lastSwap - Variable in class TestFrame
 
leftDiagonalWin() - Method in class Connect4Model
Return true if a left diagonal of equal GamePieces has been created
LetterGamePiece - class LetterGamePiece.
 
LinearRealFunction - class LinearRealFunction.
The simple function f(x)=x.
LinearRealFunction() - Constructor for class LinearRealFunction
 
LoopedList - class LoopedList.
LoopedList.java This class creates a loopedlist that contains objects.

M

main(String[]) - Static method in class MonitorClient
 
main(String[]) - Static method in class TestFrame
 
main(String[]) - Static method in class ThreadedServer
 
main(String[]) - Static method in class ooga
Program's Main Entrypoint
main(String[]) - Static method in class test
 
MakeBlank() - Method in class MemoryGamePiece
Makes gamepiece face blank again so that player cannot see value.
Matrix - class Matrix.
Matrix class is a matrix of a certain width and height
MemoryGamePiece - class MemoryGamePiece.
 
MemoryModel - class MemoryModel.
 
MemoryModel(int) - Constructor for class MemoryModel
Construct a memory model with a given board edge size.
Message - class Message.
A Message object represents a single message to the chat room consisting of a name and a string of text.
Message() - Constructor for class Message
 
Message(String, String, String) - Constructor for class Message
 
MessageConsumer - class MessageConsumer.
MessageConsumer.java Created: Wed May 23 13:30:24 2001
MessageConsumer(ClientList, Reader) - Constructor for class MessageConsumer
 
MessageHandler - interface MessageHandler.
MessageHandler.java Created: Wed May 23 09:22:21 2001
MessagePrinter - class MessagePrinter.
 
MessagePrinter(PrintStream) - Constructor for class MessagePrinter
 
MonitorClient - class MonitorClient.
 
MonitorClient() - Constructor for class MonitorClient
 
Move - class Move.
Class Move takes in a Point and then returns a Point.
MOVE_SUCCESSFUL - Static variable in interface LastMoveStatusConstants
 
MOVE_UNSUCCESSFUL - Static variable in interface LastMoveStatusConstants
 
move(int, int) - Method in class BejeweledModel
Swaps the jewel located at the specified col and row with the jewel located at the previous click if a row or column of 4 or more elements is formed.
move(int, int, GamePiece) - Method in class Connect4Model
Moves the specified gamePiece if there is no other piece at the specified column and row.
move(int, int, GamePiece) - Method in class TicTacToeModel
sets the current player's gamepiece to the specified row and column of the board if there is no other piece at that location
moveSquareTo(Component, int, int, int, int) - Method in class GameGrid
Adds a pending moves of the component into the grid, as though it came from the starting point (even off the grid).
moveSquareTo(int, int, int, int) - Method in class GameGrid
Adds a pending moves of the square at the start location to the end location in the grid.
MY_GRID_H_GAP - Static variable in class GameGrid
Holds how much padding shall be betweeen cells in the grid.
MY_GRID_V_GAP - Static variable in class GameGrid
Holds how much padding shall be betweeen cells in the grid.
myAcceptor - Variable in class GameGrid
Where to report moves to.
myChar - Variable in class TestFrame
 
myColumns - Variable in class GameGrid
Stores the size of the grid.
myContentsArraysDirty - Variable in class GameGrid
Whether or not the contents arrays are dirty or not.
myCount - Variable in class ImagePuzzleIcon
 
myCurrentContents - Variable in class GameGrid
Our current grid layout.
myExpectedSquareSize - Variable in class GameGrid
The expected size of each square, if there are no squares in the grid to compare against.
myFutureContents - Variable in class GameGrid
Our future grid layout, after the move.
myGameName - Variable in class GameModel
the name of the game that the gameModel is representing
myGamePieces - Variable in class GameModel
the list of game pieces, looped so that the game model can cycle through the game pieces if it's a turn-based game
myGameStatus - Variable in class GameModel
the game's current status, can be any of the options listed in the GameStatusConstants
myImageSize - Variable in class ImagePuzzleIcon
 
myInsideMove - Variable in class GameGrid
Holds whether or not we're inside of a move action.
myLabel - Variable in class ImagePuzzleIcon
 
myLastMoveStatus - Variable in class GameModel
the status of the last move made, can be any of the options listed in the LastMostStatusConstants used to facilitate
myListOfMoves - Variable in class GameGrid
The list of moves that are to be executed.
myListOfMovesArray - Variable in class GameGrid
The array version of the list of moves.
myLocation - Variable in class ImagePuzzleIcon
 
myMovedComponents - Variable in class GameGrid
The boolean array that detects which existing components have already been moved.
myMovePeriod - Variable in class GameGrid
How often updates occur (milliseconds between updates)
myMoveSteps - Variable in class GameGrid
The number of "steps" in the animation.
myMoveStepsProgress - Variable in class GameGrid
Our "progress" in the animation.
myMoveTimer - Variable in class GameGrid
Holds the timer that times the moves of the blasted things.
myPlayingBoard - Variable in class GameModel
where the game is being played
myRealFunction - Variable in class GameGrid
The RealFunction object that governs the rate of movement of objects.
myRows - Variable in class GameGrid
Stores the size of the grid.
myStoredToReport - Variable in class GameGrid
Holds the old state of the "myToReport"
myToReport - Variable in class GameGrid
Stores whether or not to report clicks on the internal buttons.

N

Neighborhood - class Neighborhood.
Neighborhood.java Created: Tue Nov 6 22:28:38 2001
Neighborhood(PlayingBoard) - Constructor for class Neighborhood
 
newGame() - Method in class BejeweledModel
Initializes the entire playingboard of width 8 and height 8 with BejeweledGamePieces(chosen randomly) sets variables myGameStatus and myLastMoveStatus
newGame() - Method in class BoggleModel
Initializes BoardGame for a new Game.
newGame() - Method in class Connect4Model
Initializes the entire playingboard with blankGamePieces sets variables myGameStatus and myLastMoveStatus
newGame() - Method in class Game
Creates a new game.
newGame() - Method in class GameModel
Resets the model's state to the beginning game status
newGame() - Method in class MemoryModel
Create a new board for the memory model game.
newGame() - Method in class PuzzleModel
Constructs a new game, with new game board.
newGame() - Method in class TicTacToeModel
Creates a new playingboard, initializes status variables and sets game pieces on board
next() - Method in class LoopedList
Returns next object
NumGamePiece - class NumGamePiece.
 

O

OFFSET - Static variable in class PuzzleConsts
 
OGamePiece - class OGamePiece.
XGamePiece is a GamePiece that represents an O in the TicTacToe game
ooga - class ooga.
ooga.java Created: Tue Nov 6 16:37:40 2001
ooga() - Constructor for class ooga
 
OOGAButton - class OOGAButton.
OOGAButton.java a generic button used for all the various games.
OOGAButton(Game, GamePiece, Point) - Constructor for class OOGAButton
 
open(int) - Method in class ThreadedServer
 
OvershootRealFunction - class OvershootRealFunction.
The overshoot function "overshoots" 1 before x=1, but reaches 1 immediately afterward (after reaching a maximum of 1.1).
OvershootRealFunction() - Constructor for class OvershootRealFunction
 

P

paintIcon(Component, Graphics, int, int) - Method in class ImagePuzzleIcon
 
PiecePointPair - class PiecePointPair.
 
PiecePointPair(GamePiece, Point) - Constructor for class PiecePointPair
Constructs a PiecePointPair object, which stores a GamePiece and a location Point
Player - class Player.
 
PlayingBoard - class PlayingBoard.
Is a generic board that is used by all the different games
printBoard() - Method in class BejeweledModel
Print elements of myPlayingBoard.
printMatrix(Matrix) - Method in class BejeweledModel
Print the elements of mymatrix which is passed as a paramater.
processActionEvent(ActionEvent) - Method in class OOGAButton
on action processclick button
processBoard() - Method in class BejeweledModel
Make the pieces slide down and replace the row or column formed previously.
processClick(int, int) - Method in class BejeweledModel
Moves the GamePiece at the specified col and row only if the piece clicked on is next to the previous clicked piece
processClick(int, int) - Method in class BoggleModel
 
processClick(int, int) - Method in class Connect4Model
This function is inherited from the parent class GameModel.
processClick(int, int) - Method in class GameModel
Process a click that occurred on the space (row, col) on the PlayingBoard
processClick(int, int) - Method in class MemoryModel
Processes Click for GUI
processClick(int, int) - Method in class PuzzleModel
Process click forGUI
processClick(int, int) - Method in class TicTacToeModel
on click move currentgame piece at clicked col and row
processClick(Move) - Method in class BoggleModel
Process click for GUI, checks to make sure button clicked has not been pushed yet for given word and is legal move also.
processClick(Move) - Method in class Game
processes the user's click
processClick(Move) - Method in class GameModel
 
PuzzleConsts - class PuzzleConsts.
PuzzleConsts.java Sets image size constants and other such constants of puzzle Created: Sat Nov 10 08:19:07 2001
PuzzleConsts() - Constructor for class PuzzleConsts
 
PuzzleModel - class PuzzleModel.
 
PuzzleModel(int, String) - Constructor for class PuzzleModel
Constructs a PuzzleModel, with a size and image source as parameters.
PuzzlePictureGamePiece - class PuzzlePictureGamePiece.
PuzzlePictureGamePiece.java Created: Sat Nov 10 08:08:01 2001
PuzzlePictureGamePiece(int, String, Dimension) - Constructor for class PuzzlePictureGamePiece
 

Q

Quitter - class Quitter.
a quitting class, used when windows are closed or quit menu item chosen (or any other quit action event)

R

rcToIndex(int, int) - Method in class GameGrid
Takes a column and row, and converts it to an "index" of the JPanel with the grid layout.
Reader - interface Reader.
Reader.java Created: Wed May 23 09:41:45 2001
readMessage(DataInput) - Static method in class DataInputReader
 
readWords(InputStream) - Method in class JoggleReader
 
readWords(String) - Method in class JoggleReader
read words from a one-word-per-line file
RealFunction - interface RealFunction.
Real function is a mathematical relation from one number (x) to another (f(x)).
RealWord - class RealWord.
 
RealWord(String, boolean) - Constructor for class RealWord
 
refreshCurrentContents() - Method in class GameGrid
Refreshes the current contents array based on what's in the grid.
refreshGrid() - Method in class GameGrid
Re-adds Components to the grid based on what's in the currentContents.
removeAll() - Method in class GameGrid
 
removeClient(Writer) - Method in class ClientList
 
reportMoves(boolean) - Method in class GameGrid
Sets whether or not to report clicks on the internal buttons.
reset(Image) - Static method in class IconCounterCounter
 
Reveal() - Method in class MemoryGamePiece
Reveals value on gamepiece.
Reveal(int, int) - Method in class MemoryModel
Reveal two game pieces, as specified by player
rightDiagonalWin() - Method in class Connect4Model
Return true if a right diagonal of equal GamePieces has been created
RowMove(int, int) - Method in class BejeweledModel
Returns true if the element located at mycol,myrow will form a row of three or more of the same jewels when swapped with the element located at tempCol, tempRow.
rowWin() - Method in class Connect4Model
Return true if a row of 4 equal GamePieces was created
rowWin() - Method in class TicTacToeModel
check if a row of 3 of the same pieces has been created
run() - Method in class Client
 
run() - Method in class MessageConsumer
 
run() - Method in class ThreadedServer
 
run() - Static method in class test
 

S

SClient - class SClient.
 
SClient(String) - Constructor for class SClient
 
ScoreBased - interface ScoreBased.
ScoreBased.java Created: Tue Nov 13 03:14:52 2001
sendMessage(Message) - Method in class Client
 
SetDescription() - Method in class MemoryGamePiece
Sets private variable myDescription to the value of the game piece.
setElement(int, int, Object) - Method in class Matrix
set's the element of the matrix at the specified column and row to the specified object
setEnabled(boolean) - Method in class GameGrid
Changes all the buttons in the grid to be active or inactive.
setExpectedSquareSize(int, int) - Method in class GameGrid
Sets the expected size of each square in the grid.
setGamePieceAt(int, int, GamePiece) - Method in class GameModel
Places a GamePiece on the PlayingBoard at the specified column and row
setGamePieceAt(int, int, GamePiece) - Method in class PlayingBoard
set's a piece at the specified col and row of the board
setGamePieceAt(Point, GamePiece) - Method in class PlayingBoard
sets a pieces at the specified point of the board
setGamePieces() - Method in class Connect4Model
Adds the different gamepieces of the game to a LoopedList object, myGamePieces
setGamePieces() - Method in class TicTacToeModel
set the gamepieces to be used in the game
setGridClickAcceptor(GridClickAcceptor) - Method in class GameGrid
Tells the grid to get a new GridClickAcceptor.
setHandler(MessageHandler) - Method in class Client
 
setIcon(ImageIcon) - Method in class EmptyGamePiece
Set's the background to the specified ImageIcon
setMovementFunction(RealFunction) - Method in class GameGrid
Sets the RealFunction that determines the style of movement that occurs when components are moving from place to place.
setMovePeriod(int) - Method in class GameGrid
Sets the new period between move ticks.
setMoveSteps(int) - Method in class GameGrid
Sets the number of steps (ticks) that a move takes.
setName(String) - Method in class Message
 
setPushed(boolean) - Method in class LetterGamePiece
Set a LetterGamePiece as "pushed."
setText(String) - Method in class Message
 
setTime() - Method in class BoardGUIAnim
 
setTime() - Method in class TestFrame
 
setType(String) - Method in class Message
 
SimpleUI - class SimpleUI.
This class is a panel which has some informative labels, a text area listing messages, and a line at the bottom where you can type a new message and press enter to send it.
SimpleUI(String, Client, String, int) - Constructor for class SimpleUI
Construct a SimpleUI.
Slide(int, int) - Method in class MemoryModel
 
Slide(int, int) - Method in class PuzzleModel
Performs one move.
Solve() - Method in class PuzzleModel
Solves the puzzle.
SquareRealFunction - class SquareRealFunction.
The simple function f(x)=x^2.
SquareRealFunction() - Constructor for class SquareRealFunction
 
StatusInfo - interface StatusInfo.
StatusInfo.java Created: Tue Nov 13 04:25:40 2001
StatusPanelGUI - class StatusPanelGUI.
StatusPanelGUI.java Created: Tue Nov 13 01:53:28 2001
StatusPanelGUI(Game) - Constructor for class StatusPanelGUI
 
swap(int, int) - Method in class BejeweledModel
Swaps two pieces of myPlayingBoard loacated at col, row and private variables tempCol, tempRow
swapCheckMatrix(int, int) - Method in class BejeweledModel
Swaps two pieces of checkMatrix located at col, row and private variables tempCol, tempRow
swapSwapMatrix(int, int) - Method in class BejeweledModel
Swaps two pieces of swapMatrix located at col, row and private variables tempCol, tempRow

T

TaperRealFunction - class TaperRealFunction.
The taper function starts out with df/dx=0 at x=0 and x=1, with steeper regions in between.
TaperRealFunction() - Constructor for class TaperRealFunction
 
test - class test.
test.java Created: Tue Nov 6 16:37:40 2001
test() - Constructor for class test
 
TestFrame - class TestFrame.
 
TestFrame() - Constructor for class TestFrame
 
threadAcceptGridClick(int, int) - Method in class BoardGUIAnim
Exported functionality
threadAcceptGridClick(int, int) - Method in class TestFrame
Exported functionality
ThreadedServer - class ThreadedServer.
ThreadedServer.java Created: Wed May 23 13:52:00 2001
ThreadedServer() - Constructor for class ThreadedServer
 
ThreadedServer(int) - Constructor for class ThreadedServer
 
TicTacToeModel - class TicTacToeModel.
This is the model for the TicTacToe game.
to - Variable in class GameGrid.MoveRecord
The points to move between.
toMove - Variable in class GameGrid.MoveRecord
The component to move.
TossDice() - Method in class Dice
Returns a randomly generated face value (a string in this class) for a toss of die or dice.
toString() - Method in class GamePiece
Returns the description of a game piece
toString() - Method in class Message
 
Trie - class Trie.
Warning this class serves as both a Trie and a Trie-node.
Trie() - Constructor for class Trie
create a new emtpy Trie
TurnBased - interface TurnBased.
TurnBased.java Created: Tue Nov 13 03:06:52 2001
TurnBasedGame - interface TurnBasedGame.
TurnBasedGame.java Created: Tue Nov 13 03:06:52 2001

U

update() - Method in class BoardGUIAnim
 
update(Observable, Object) - Method in class BoardGUI
 
update(Observable, Object) - Method in class StatusPanelGUI
 
updateBoard() - Method in class BoardGUI
Updates the panel, the game status, if game is over it pops a message allowing the player to play again or not.
updateGameStatus() - Method in class BejeweledModel
Update the status of the game.
updateGameStatus() - Method in class BoggleModel
Updates status of game.
updateGameStatus() - Method in class Connect4Model
Checks to see it the game is won or if there are no more pieces left.
updateGameStatus() - Method in class GameModel
Updates the status of the current game
updateGameStatus() - Method in class MemoryModel
Updates the game status.
updateGameStatus() - Method in class PuzzleModel
Updates the game status of game.
updateGameStatus() - Method in class TicTacToeModel
update the status of the game, set status variables that determine if game is won tied or still in progress
updateStatus() - Method in class StatusPanelGUI
 

V

VectorSize() - Method in class CollectionDice
Return size of vector, how many elements of dice in the vector.

W

waitOnMoves() - Method in class GameGrid
The calling thread sleeps if the
wasLastMoveSuccessful() - Method in class GameModel
Returns whether or not the last move was successful
windowClosing(WindowEvent) - Method in class ExitWhenClosed
This makes the program exit when you close a window with your window manager.
windowClosing(WindowEvent) - Method in class Quitter
 
WriteMessage(DataOutput, Message) - Static method in class DataOutputWriter
 
Writer - interface Writer.
Writer.java Created: Wed May 23 10:37:29 2001
writeWords(Trie, String) - Method in class JoggleReader
write words to a file one-per-line (e.g., for futgure reading)

X

XGamePiece - class XGamePiece.
XGamePiece is a GamePiece that represents an X in the TicTacToe game

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