A B C E F G I L M N P R S U

A

actLikeStart() - Method in class MineSweeperMenuHandler
Start playing the game.
actionPerformed(ActionEvent) - Method in class MineSweeperMenuHandler
An event handler that interprets menu selections on the games two menus.

B

BEGINNER_LEVEL - Static variable in class MineSweeperMenuHandler
A constant value representing the easiest level of play.

C

COVERED_CELL - Static variable in class MineSweeperBoardBase
A constant value representing a covered cell.
clearBoard() - Method in class MineSweeperBoardBase
Cover all cells in the board.

E

EXPERT_LEVEL - Static variable in class MineSweeperMenuHandler
A constant value representing the hardest level of play.
endGame() - Static method in class MineSweeper
End the current game.
equals(Object) - Method in class MineSweeperBoardBase
Check whether two boards have the same cell contents.

F

FLAG - Static variable in class MineSweeperBoardBase
A constant value representing a cell which does not contain a mine but has had a flag placed on it.
FLAGGED_MINE - Static variable in class MineSweeperBoardBase
A constant value representing a cell which contains a mine and has had a flag placed on it.
flagCell(int, int) - Method in class MineSweeperBoard
Place or remove a flag from the specified cell.
flagCell(int, int) - Method in class MineSweeperBoardBase
Place or remove a flag from the specified cell.

G

gameLost() - Method in class MineSweeperBoard
Determine if the player has lost the current game.
gameLost() - Method in class MineSweeperBoardBase
Determine if the player has lost the current game.
gameWasLost() - Static method in class MineSweeper
End the current game, reveal the board, and show an appropriate message to the player.
gameWasWon() - Static method in class MineSweeper
End the current game, reveal the board, and show an appropriate message to the player.
gameWon() - Method in class MineSweeperBoard
Determine if the player has won the current game.
gameWon() - Method in class MineSweeperBoardBase
Determine if the player has won the current game.
getCell(int, int) - Method in class MineSweeperBoard
Get the contents of the specified cell on this MineSweeperBoard.
getCell(int, int) - Method in class MineSweeperBoardBase
Get the contents of the specified cell on this MineSweeperBoard.
getCol() - Method in class MineSweeperButton
Get the column number of the cell represented by this button.
getColumns() - Method in class MineSweeperBoard
Get the number of columns in this MineSweeperBoard.
getColumns() - Method in class MineSweeperBoardBase
Get the number of columns in this MineSweeperBoard.
getLevel() - Static method in class MineSweeper
Get the current game level setting.
getRow() - Method in class MineSweeperButton
Get the row number of the cell represented by this button.
getRows() - Method in class MineSweeperBoard
Get the number of rows in this MineSweeperBoard.
getRows() - Method in class MineSweeperBoardBase
Get the number of rows in this MineSweeperBoard.

I

INTERMEDIATE_LEVEL - Static variable in class MineSweeperMenuHandler
A constant value representing an intermediate level of play.
INVALID_CELL - Static variable in class MineSweeperBoardBase
A constant value representing the contents of an invalid cell.
isGameOn() - Static method in class MineSweeper
Determine if this game is currently being played.

L

loadBoardState(String[]) - Method in class MineSweeperBoardBase
Reset the board using a given array of strings.

M

MINE - Static variable in class MineSweeperBoardBase
A constant value representing a a cell that has not been uncovered yet but contains a mine.
MineSweeper - class MineSweeper.
An implementation of the Mine Sweeper game.
MineSweeper() - Constructor for class MineSweeper
 
MineSweeperBoard - class MineSweeperBoard.
A MineSweeperBoard holds a representation of the contents of the playing field for a Mine Sweeper game.
MineSweeperBoard(int, int, int) - Constructor for class MineSweeperBoard
Construct a new MineSweeperBoard with the given dimensions.
MineSweeperBoardBase - class MineSweeperBoardBase.
A MineSweeperBoard holds a representation of the contents of the playing field for a Mine Sweeper game.
MineSweeperBoardBase() - Constructor for class MineSweeperBoardBase
 
MineSweeperButton - class MineSweeperButton.
A button used to represent one cell on the graphical mine sweeper board display.
MineSweeperButton(int, int) - Constructor for class MineSweeperButton
Creates a new MineSweeperButton object.
MineSweeperMenuHandler - class MineSweeperMenuHandler.
 
MineSweeperMenuHandler(JMenu, JMenu) - Constructor for class MineSweeperMenuHandler
Creates a new MineSweeperMenuHandler object.
MineSweeperPanel - class MineSweeperPanel.
The GUI panel containing the board display when the program runs.
MineSweeperPanel(MineSweeperBoardBase) - Constructor for class MineSweeperPanel
Creates a new MineSweeperPanel object.
main(String[]) - Static method in class MineSweeper
This method allows the game to be run as a stand-alone java program.
makeNewBoard() - Static method in class MineSweeper
Create a new board, using a size and number of mines determined by the current level setting.
mouseClicked(MouseEvent) - Method in class MineSweeperPanel
An event handler that responds to mouse events.
mouseEntered(MouseEvent) - Method in class MineSweeperPanel
An event handler that take action when the mouse first enters the panel.
mouseExited(MouseEvent) - Method in class MineSweeperPanel
An event handler that take action when the mouse leaves the panel.
mousePressed(MouseEvent) - Method in class MineSweeperPanel
An event handler that take action when the mouse button is pressed somewhere within the panel.
mouseReleased(MouseEvent) - Method in class MineSweeperPanel
An event handler that take action when the mouse button is released somewhere within the panel.

N

numAdjMines(int, int) - Method in class MineSweeperBoard
Count the number of mines that appear in cells that are adjacent to the specified cell.
numAdjMines(int, int) - Method in class MineSweeperBoardBase
Count the number of mines that appear in cells that are adjacent to the specified cell.

P

placeMines(int) - Method in class MineSweeperBoardBase
Place a specified number of mines at random locations on this board.
printBoard(PrintWriter) - Method in class MineSweeperBoardBase
Print the contents of this MineSweeperBoard to the specified output stream.

R

reStartGameOnClick() - Static method in class MineSweeper
Restart the current game.
resetMenus() - Method in class MineSweeperMenuHandler
Resets the state of the menus once the game has ended.
revealBoard() - Static method in class MineSweeper
Reveal the board.
revealBoard() - Method in class MineSweeperBoard
Uncover all of the cells on the board.
revealBoard() - Method in class MineSweeperBoardBase
Uncover all of the cells on the board.
revealBoard() - Method in class MineSweeperPanel
Reveal the whole board at the end of the game.

S

setCell(int, int, int) - Method in class MineSweeperBoard
Set the contents of the specified cell on this MineSweeperBoard.
setCell(int, int, int) - Method in class MineSweeperBoardBase
Set the contents of the specified cell on this MineSweeperBoard.
setLevel(int) - Static method in class MineSweeper
Set the level of this game.
setPlayingIcon(int) - Method in class MineSweeperButton
Set the icon to display on this button's face while the game is being played.
setRevealIcon(int) - Method in class MineSweeperButton
Set the icon to display on this button's face when the board is fully revealed when the game is over.
startGame() - Static method in class MineSweeper
Start playing the current game.
startGameOnClick() - Static method in class MineSweeper
Start playing the current game.

U

UNCOVERED_MINE - Static variable in class MineSweeperBoardBase
A constant value representing a cell containing a mine that has been uncovered.
uncoverCell(int, int) - Method in class MineSweeperBoard
Uncover the specified cell.
uncoverCell(int, int) - Method in class MineSweeperBoardBase
Uncover the specified cell.

A B C E F G I L M N P R S U