< A B C D E F G H I J L M R S T W

<

() - Static method in class minesweeper.MineFieldCell
The "static constructor" of this class.

A

addListener(MineFieldCellListener) - Method in class minesweeper.MineFieldCell
Adds the specified mine field cell listener to receive event from this cell.
addListener(MineFieldListener) - Method in class minesweeper.MineField
Adds the specified mine field listener to receive event from this field.
AssertionException - exception minesweeper.AssertionException.
The exception thrown when an assertion is violated.
AssertionException() - Constructor for class minesweeper.AssertionException
Constructs an AssertionException with no detail message.
AssertionException(String) - Constructor for class minesweeper.AssertionException
Constructs an AssertionException with the specified detail message.

B

bContainsAMine - Variable in class minesweeper.MineFieldCell
Indicates whether this cells contains a mine.
bGameAllowed - Variable in class minesweeper.MainFrame
The flag indicating whether the game is running.
bGameAllowed - Variable in class minesweeper.MineField
The flag indicating whether the game is running.
bGameStarted - Variable in class minesweeper.MineField
The flag indicating whether the game is started.
bIsRevealed - Variable in class minesweeper.MineFieldCell
Indicates whether the real content of this cell is revealed.
bPlayerSupposesAMine - Variable in class minesweeper.MineFieldCell
Indicates whether the player thinks that this cell contains a mine.
btnButton - Variable in class minesweeper.MineFieldCell
The button displayed when the content of this cell is not revealed.
btnReset - Variable in class minesweeper.MainFrame
The reset button.

C

CANVASBACKGROUNDCOLOR - Static variable in class minesweeper.MainFrame
The canvas background color.
CELLWIDTH - Static variable in class minesweeper.MineField
The maximum width of columns.

D

DIGITS - Static variable in class minesweeper.MineFieldCell
An array of digits; these labels should not be modified.
dispatchMines(int, int) - Method in class minesweeper.MineField
Dispatches the mines in this field, avoiding the cell of specified coordinates.
displayChanged(MineFieldCellEvent) - Method in class minesweeper.MineField.MineFieldCellListenerWithCoordinates
Invoked when the display of one of the cell has changed.
doesContainAMine() - Method in class minesweeper.MineFieldCell
Indicates whether this cell has a mine.

E

EMPTY - Static variable in class minesweeper.MineFieldCell
An empty cell.
ERROR - Static variable in class minesweeper.MineFieldCell
A mine that was wrongly supposed.

F

fireDisplayChanged() - Method in class minesweeper.MineFieldCell
Fires a displayChanged event.
fireFlagAdded() - Method in class minesweeper.MineFieldCell
Fires a flagAdded event.
fireFlagAdded() - Method in class minesweeper.MineField
Fires a flagAdded event.
fireFlagRemoved() - Method in class minesweeper.MineFieldCell
Fires a flagRemoved event.
fireFlagRemoved() - Method in class minesweeper.MineField
Fires a flagRemoved event.
fireGameStarts() - Method in class minesweeper.MineField
Fires a gameStarts event.
fireSteppedOnAMine() - Method in class minesweeper.MineFieldCell
Fires a steppedOnAMine event.
fireSteppedOnAMine() - Method in class minesweeper.MineField
Fires a steppedOnAMine event.
FLAG - Static variable in class minesweeper.MineFieldCell
A flag.
flagAdded(MineFieldCellEvent) - Method in class minesweeper.MineField.MineFieldCellListenerWithCoordinates
Invoked when the player adds a new flag.
flagRemoved(MineFieldCellEvent) - Method in class minesweeper.MineField.MineFieldCellListenerWithCoordinates
Invoked when the player removes a flag.

G

gameOver() - Method in class minesweeper.MainFrame
Disables the mine field and reveals wrong mines.
getCell(int, int) - Method in class minesweeper.MineField
Returns the cell of specified position
getColumnCount() - Method in class minesweeper.MineField
Returns the number of columns.
getComponent() - Method in class minesweeper.MineFieldCell
Returns the Component that is to be used to render this mine field cell, or null if the cell is empty with no mines around.
getRowCount() - Method in class minesweeper.MineField
Returns the number of rows.
getSurroundingMineCount() - Method in class minesweeper.MineFieldCell
Indicates the number of mines around this cell.

H

HAPPYSMILEY - Static variable in class minesweeper.MainFrame
A smiling smiley.

I

iColumn - Variable in class minesweeper.MineField.MineFieldCellListenerWithCoordinates
The column of the listened cell.
iColumns - Variable in class minesweeper.MineField
The number of columns.
iInitialMines - Variable in class minesweeper.MainFrame
The initial number of mines.
iInitialMines - Variable in class minesweeper.MineField
The initial number of mines.
increaseSurroundingMineCount() - Method in class minesweeper.MineFieldCell
Increase the number of mines around this cell.
iRemainingMines - Variable in class minesweeper.MainFrame
The number of remaining mines.
iRow - Variable in class minesweeper.MineField.MineFieldCellListenerWithCoordinates
The row of the listened cell.
iRows - Variable in class minesweeper.MineField
The number of rows.
isFlagged() - Method in class minesweeper.MineFieldCell
Indicates whether this cell has a flag.
isRevealed() - Method in class minesweeper.MineFieldCell
Indicates whether the real content of this cell is revealed.
iSurroundingMines - Variable in class minesweeper.MineFieldCell
Stores the number of mines around this cell.

J

jtTable - Variable in class minesweeper.MineField
The JTable.

L

lStartTime - Variable in class minesweeper.MainFrame
The date (in seconds since Epoch) at which the current play started.
lstListeners - Variable in class minesweeper.MineFieldCell
The list of listeners.
lstSurrounders - Variable in class minesweeper.MineFieldCell
The list of surrounders.

M

main(String[]) - Static method in class minesweeper.Minesweeper
The program entry point.
MainFrame - class minesweeper.MainFrame.
The MineSweeper main frame.
MainFrame(int, int, int) - Constructor for class minesweeper.MainFrame
Creates a new MainFrame object.
mfcCells - Variable in class minesweeper.MineField
The array of mine field cells.
mfceEvent - Variable in class minesweeper.MineFieldCell
The source of events.
mfeEvent - Variable in class minesweeper.MineField
The source of events.
mfMineField - Variable in class minesweeper.MainFrame
The mine field.
MINE - Static variable in class minesweeper.MineFieldCell
A mine.
MineField - class minesweeper.MineField.
A mine fied.
MineField.MineFieldCellListenerWithCoordinates - class minesweeper.MineField.MineFieldCellListenerWithCoordinates.
A mine field cell listener with cell coordinates.
MineField.MineFieldCellListenerWithCoordinates(MineField, int, int) - Constructor for class minesweeper.MineField.MineFieldCellListenerWithCoordinates
Build a new listener with the specified coordinates.
MineField(int, int, int) - Constructor for class minesweeper.MineField
Creates a new mine field, with the specified number of columns and rows and mines.
MineFieldCell - class minesweeper.MineFieldCell.
A cell of the mine field.
MineFieldCell() - Constructor for class minesweeper.MineFieldCell
Creates a new mine field cell.
minesweeper - package minesweeper
 
Minesweeper - class minesweeper.Minesweeper.
The main class of the Minesweeper game.
Minesweeper() - Constructor for class minesweeper.Minesweeper
 

R

refreshMineCountField() - Method in class minesweeper.MainFrame
Refreshes the text field that displays the number of remaining mines.
registerAsSurrounder(MineFieldCell) - Method in class minesweeper.MineFieldCell
Registers the specified mine field cell as a surrounder of this one.
removeListener(MineFieldCellListener) - Method in class minesweeper.MineFieldCell
Removes the specified mine field cell listener so that it no longer receive events from this cell.
removeListener(MineFieldListener) - Method in class minesweeper.MineField
Removes the specified mine field listener so that it no longer receive events from this field.
reset() - Method in class minesweeper.MineFieldCell
Reset the mine field cell.
reset(boolean) - Method in class minesweeper.MainFrame
Resets the game.
reset(boolean) - Method in class minesweeper.MineField
Reset the mine field.
reveal() - Method in class minesweeper.MineFieldCell
Reveals the content of this cell.
reveal(Point) - Method in class minesweeper.MineField
Reveals the cell of specified location.
revealError() - Method in class minesweeper.MineFieldCell
Reveals the content of this cell if the user assumption was wrong.
revealSurrounders() - Method in class minesweeper.MineFieldCell
Reveals the surrounders of this cell, if this cell is already revealed and the number of surrounding flags matches the number of surrounding mines.
revealSurrounders(Point) - Method in class minesweeper.MineField
Reveals the surrounders of the cell of specified location.

S

SADSMILEY - Static variable in class minesweeper.MainFrame
A sad smiley.
setDimension(int, int) - Method in class minesweeper.MineField
Sets the number of columns and rows of this mine field.
settleAMine() - Method in class minesweeper.MineFieldCell
Settles a mine in this cell.
startGame(Point) - Method in class minesweeper.MineField
Starts the game: dispatches the mines, avoiding the specified point.
steppedOnAMine(MineFieldCellEvent) - Method in class minesweeper.MineField.MineFieldCellListenerWithCoordinates
Invoked when the player stepped on a mine.
stopGame() - Method in class minesweeper.MineField
Stops the game.

T

tfMineCount - Variable in class minesweeper.MainFrame
The text field displaying the number of remaining mines.
tfTimer - Variable in class minesweeper.MainFrame
The text field displaying the elapsed time.
tmTableModel - Variable in class minesweeper.MineField
The table model.
toggleFlag() - Method in class minesweeper.MineFieldCell
Toggles the flag.
toggleFlag(Point) - Method in class minesweeper.MineField
Toggles a flag at the cell of specified location.
tTimer - Variable in class minesweeper.MainFrame
The time used to update second display.

W

WONDERINGSMILEY - Static variable in class minesweeper.MainFrame
A wondering smiley.

< A B C D E F G H I J L M R S T W