Skip navigation links
A B C D F G I L M N P R S T V W Y 

A

actionPerformed(ActionEvent) - Method in class minesweeper.Button
Invoked when an action occurs.
actionPerformed(ActionEvent) - Method in class minesweeper.Reset
 
actionPerformed(ActionEvent) - Method in class minesweeper.Tile
 
addFlag() - Method in class minesweeper.Minesweeper
Adds to a flag when a flag tile is uncovered.
arrTruth() - Method in class minesweeper.RandPlace
Returns the number of "true" values in the truth array

B

Button - Class in minesweeper
Button is a JButton for spaces / flags / mines.
Button(int, int, int) - Constructor for class minesweeper.Button
Create square Button.

C

canvas - Variable in class minesweeper.ControlPanel
 
chooseBalloonShape - Variable in class minesweeper.ControlPanel
 
col - Variable in class minesweeper.Button
This Button's column.
col - Variable in class minesweeper.GameBoard
 
col - Variable in class minesweeper.RandPlace
 
colorButton - Variable in class minesweeper.ControlPanel
 
colorDisplay - Variable in class minesweeper.ControlPanel
 
cols - Variable in class minesweeper.Grid
Actual number of columns in grid.
cols - Static variable in class minesweeper.Main
Number of cols in grid.
column - Variable in class minesweeper.Tile
 
componentResized(ComponentEvent) - Method in class minesweeper.Main.PanelListener
 
ControlPanel - Class in minesweeper
 
ControlPanel() - Constructor for class minesweeper.ControlPanel
 
convert2D() - Method in class minesweeper.RandPlace
Generates a usable 2D array from the 1D array truthArr- convoluted? Granted.
createAndShowGUI() - Static method in class minesweeper.Main
Create and show main graphical user interface.

D

DEFAULT_COLS - Static variable in class minesweeper.Grid
Default number of columns in grid.
DEFAULT_ROWS - Static variable in class minesweeper.Grid
Default number of rows in grid.
DrawingPanel - Class in minesweeper
 
DrawingPanel() - Constructor for class minesweeper.DrawingPanel
 

F

findButton(int, int) - Method in class minesweeper.Grid
Return Button at column row row and col.

G

gameArray - Static variable in class minesweeper.Minesweeper
 
GameBoard - Class in minesweeper
 
GameBoard() - Constructor for class minesweeper.GameBoard
 
gameState() - Constructor for enum minesweeper.Minesweeper.gameState
 
generate2D() - Method in class minesweeper.RandPlace
Generates a usable 2D array from any passed boolean[] array- such as the one valid() makes.
getCol() - Method in class minesweeper.Tile
 
getCols() - Method in class minesweeper.Grid
Return number of columns in Grid.
getElapsedTime() - Method in class minesweeper.Stopwatch
 
getFormattedElapsedTime() - Method in class minesweeper.Stopwatch
 
getGameArray() - Static method in class minesweeper.Minesweeper
 
getGrid() - Static method in class minesweeper.Main
Return Grid component.
getImage(String) - Static method in enum minesweeper.Images
Return Image associated with path.
getIsClicked() - Method in class minesweeper.Tile
 
getIsMine() - Method in class minesweeper.Tile
 
getMines() - Static method in class minesweeper.Minesweeper
 
getRow() - Method in class minesweeper.Tile
 
getRows() - Method in class minesweeper.Grid
Return number of rows in Grid.
getSide() - Method in class minesweeper.Grid
Return side of square Buttons in Grid.
getTileValue() - Method in class minesweeper.Tile
Method for Main to use to read the value of the tile and, in turn, display it on the eventual board
Grid - Class in minesweeper
DESCRIBE Grid HERE.
Grid(int, int, int) - Constructor for class minesweeper.Grid
Create Grid of square Buttons.
Grid(int, int) - Constructor for class minesweeper.Grid
Create Grid of square Buttons with Grid.MINIMUM_SIDE size of square buttons.
Grid() - Constructor for class minesweeper.Grid
Create Grid of square Buttons with Grid.DEFAULT_ROWS number of rows, Grid.DEFAULT_COLS number of columns, and Grid.MINIMUM_SIDE size of square buttons.
grid - Static variable in class minesweeper.Main

I

image - Variable in enum minesweeper.Images
The Image to be displayed.
image() - Method in enum minesweeper.Images
Return Image to be displayed.
Images - Enum in minesweeper
Images is an enum that encodes 12 Minesweeper images.
Images(String) - Constructor for enum minesweeper.Images
Construct enum and Image to be displayed associated with path.
incrementTile() - Method in class minesweeper.Tile
Another way to modify the tileValue, incrementing by one- use this instead of the other if it suits the board-init code better
isClicked - Variable in class minesweeper.Tile
 
isMine - Variable in class minesweeper.Tile
 
isRunning - Variable in class minesweeper.Stopwatch
 
isStopWatchRunning() - Method in class minesweeper.Stopwatch
 

L

logger - Static variable in class minesweeper.Button
log4j Logger.
logger - Static variable in class minesweeper.Grid
log4j Logger.
logger - Static variable in class minesweeper.Main
log4j Logger.
logger - Static variable in class minesweeper.Minesweeper
log4j Logger.
logger - Static variable in class minesweeper.Reset
log4j Logger.
logger - Static variable in class minesweeper.Stopwatch
log4j Logger.
logger - Static variable in class minesweeper.Tile
log4j Logger.
LONG - Static variable in class minesweeper.Minesweeper
LONG name of this project.

M

Main - Class in minesweeper
DESCRIBE Main HERE.
Main(String, int, int, int) - Constructor for class minesweeper.Main
Construct a Main frame.
main(String[]) - Static method in class minesweeper.Main
Minesweeper main method.
Main.PanelListener - Class in minesweeper
PanelListener listens for resize events and adjusts grid accordingly.
mines - Static variable in class minesweeper.Main
Number of mines in grid.
minesweeper - package minesweeper
 
Minesweeper - Class in minesweeper
DESCRIBE Minesweeper HERE.
Minesweeper() - Constructor for class minesweeper.Minesweeper
No-args constructor: game is running, do not start with any flags.
Minesweeper.gameState - Enum in minesweeper
 
MINIMUM_SIDE - Static variable in class minesweeper.Grid
Constant minimum size of square buttons.

N

numberFlags - Variable in class minesweeper.Minesweeper
 
numContains(boolean, boolean[]) - Method in class minesweeper.RandPlace
numContains counts the number of "true" or "false" (truth) in an array
numContains(boolean, boolean[][]) - Method in class minesweeper.RandPlace
 
numTrue - Variable in class minesweeper.RandPlace
 

P

paintComponent(Graphics) - Method in class minesweeper.Button
Paint the component using a Graphics rendering object.
paintComponent(Graphics) - Method in class minesweeper.Grid
Paint the component using a Graphics rendering object.
panel - Static variable in class minesweeper.Main
Single JPanel in main JFrame so as to accurately calculate drawing area.
PanelListener() - Constructor for class minesweeper.Main.PanelListener
 
parseActionCommand(String) - Static method in class minesweeper.Button
Return (row,col) Point parsed from actionCommand.
path - Variable in enum minesweeper.Images
The pathname for Image to be displayed.
path() - Method in enum minesweeper.Images
Return pathname for Image to be displayed.

R

RandPlace - Class in minesweeper
RandPlace- looks convoluted; is solely for deciding where mines are- randomly placing them, if you will
RandPlace(int, int, int) - Constructor for class minesweeper.RandPlace
This whole class is to create a boolean array
Reset - Class in minesweeper
DESCRIBE Reset HERE.
Reset(ImageIcon) - Constructor for class minesweeper.Reset
 
row - Variable in class minesweeper.Button
This Button's row.
row - Variable in class minesweeper.GameBoard
 
row - Variable in class minesweeper.RandPlace
 
row - Variable in class minesweeper.Tile
 
rows - Variable in class minesweeper.Grid
Actual number of rows in grid.
rows - Static variable in class minesweeper.Main
Number of rows in grid.

S

setActionCommand(int, int) - Method in class minesweeper.Button
setActionCommand("row,col").
setSize(int, int) - Method in class minesweeper.Button
Resizes this component so that it has width width and height height.
setSize(Dimension) - Method in class minesweeper.Button
Resizes this component so that it has width size.width and height size.height.
setSize(int, int) - Method in class minesweeper.Grid
Resizes this component so that it has width width and height height.
setSize(Dimension) - Method in class minesweeper.Grid
Resizes this component so that it has width size.width and height size.height.
setTileValue(int) - Method in class minesweeper.Tile
Allows Main (or wherever the board is initialized) to modify the value based on nearby mines
setTileValue() - Method in class minesweeper.Tile
Allows getMines() class in Minesweeper to assign correct tile value after all the mines are created to all the non-mine tiles
SHORT - Static variable in class minesweeper.Minesweeper
SHORT name of this project.
side - Variable in class minesweeper.Grid
Actual size of square buttons.
startStopWatch() - Method in class minesweeper.Stopwatch
 
startTime - Variable in class minesweeper.Stopwatch
 
startTimer(boolean) - Static method in class minesweeper.Main
 
stateOfGame - Variable in class minesweeper.Minesweeper
 
stopStopWatch() - Method in class minesweeper.Stopwatch
 
Stopwatch - Class in minesweeper
DESCRIBE Stopwatch HERE.
Stopwatch() - Constructor for class minesweeper.Stopwatch
 
sw - Static variable in class minesweeper.Main
Stopwatch FOR WHAT?

T

Tile - Class in minesweeper
DESCRIBE Tile HERE.
Tile(int, int, boolean) - Constructor for class minesweeper.Tile
 
tileHandled(Tile) - Method in class minesweeper.Minesweeper
A tile has been triggered - this method will handle it (WORK IN PROGRESS)
tileValue - Variable in class minesweeper.Tile
 
timerLabel - Static variable in class minesweeper.Main
JLabel to display timer.
toString() - Method in class minesweeper.Button
Return String representation of this.
toString() - Method in class minesweeper.Grid
Return String representation of this.
toString() - Method in class minesweeper.Tile
 
truthArr - Variable in class minesweeper.RandPlace
 

V

valid() - Method in class minesweeper.RandPlace
Bread and butter of the class: creates a valid array (one long one) of [row*col] length, with [numTrue] "true" values
valueOf(String) - Static method in enum minesweeper.Images
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum minesweeper.Minesweeper.gameState
Returns the enum constant of this type with the specified name.
values() - Static method in enum minesweeper.Images
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum minesweeper.Minesweeper.gameState
Returns an array containing the constants of this enum type, in the order they are declared.

W

winCondition() - Method in class minesweeper.Minesweeper
Has the state of the game changed yet?

Y

youDied() - Static method in class minesweeper.Main
 
A B C D F G I L M N P R S T V W Y 
Skip navigation links

Copyright © 2018. All rights reserved.