Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
C
D
E
F
G
H
I
L
M
N
P
Q
R
S
T
U
W
A
actionPerformed(ActionEvent)
- Method in class
WorldFrame
Handles button clicks etc.
addLayoutComponent(Component, Object)
- Method in class
World.WorldLayout
addLayoutComponent(String, Component)
- Method in class
World.WorldLayout
addMarker()
- Method in class
Cell
Adds a flag type marker to the Cell.
addMine()
- Method in class
Cell
Adds a mine to the Cell.
C
cascade()
- Method in class
Cell
Clear all adjacent cells if they are completely empty.
Cell
- class
Cell
.
A World is made up of a 2-dimensional grid of Cells.
CELL
- Static variable in class
World.WorldLayout
Cell(World, int, int)
- Constructor for class
Cell
Constructs a new Cell in the specified World.
CellDweller
- class
CellDweller
.
This class represents an abstract object that can be associated with a particular Cell.
CellDweller(Cell)
- Constructor for class
CellDweller
Constructor for CellDwellers.
clear()
- Method in class
Cell
Clears a non-mined Cell.
cycle()
- Method in class
Marker
Cycles the marker between flag, question mark, and nothing.
cycleMarker()
- Method in class
Cell
Get a reference to the marker on this Cell.
D
Direction
- class
Direction
.
A Direction object represents a direction in 2-dimensional space.
Direction(double)
- Constructor for class
Direction
Creates a new Direction object, specified in degrees.
displayScore()
- Method in class
World
Displays the player's score.
E
EAST
- Static variable in class
Direction
A predefined Direction representing East.
F
FLAG
- Static variable in class
Marker
G
gameIsOver()
- Method in class
World
Reveals whether the game is over.
getAdjacentMarkers()
- Method in class
Cell
Gets the number of markers adjacent to the Cell.
getAdjacentMineNumbers()
- Method in class
Cell
Gets the number of 'mine numbers' adjacent to the Cell.
getAdjacentMines()
- Method in class
Cell
Gets the number of mines adjacent to the Cell.
getCell()
- Method in class
CellDweller
Get a reference to the Cell that this CellDweller is on.
getCell(int, int)
- Method in class
World
Gets the cell at coordinates (x,y).
getCellClicks()
- Method in class
World
Returns the number of cells the player has clicked.
getDegrees()
- Method in class
Direction
Gets the angle of this Direction in degrees.
getFlaggedMines()
- Method in class
World
Get the number of mines that have been correctly flagged.
getFlaggedNonMines()
- Method in class
World
Get the number of cells that have been incorrectly flagged.
getLayoutAlignmentX(Container)
- Method in class
World.WorldLayout
getLayoutAlignmentY(Container)
- Method in class
World.WorldLayout
getMarker()
- Method in class
Cell
Get a reference to the marker on this Cell.
getMine()
- Method in class
Cell
Get a reference to the mine on this Cell.
getNextCell(Direction)
- Method in class
Cell
Gets the reference to a neighbouring Cell in the specified direction.
getOppositeDirection()
- Method in class
Direction
Returns a new direction object that points in the opposite direction to this one.
getPosition()
- Method in class
Cell
Gets the location of this Cell.
getPreferredSize()
- Method in class
Cell
This method lets the layout manager know what size this Cell would prefer to be.
getRadians()
- Method in class
Direction
Gets the angle of this Direction in radians.
getRelativeDirection(double)
- Method in class
Direction
Gets a new direction relative to this direction by adding the number of degrees specified.
getType()
- Method in class
Marker
Get the Color representing the 'type' of this marker -- flag or question mark.
getWorld()
- Method in class
Cell
Get a reference to the World containing this Cell.
H
hasMarker()
- Method in class
Cell
Reveals whether the Cell contains a marker or not.
hasMine()
- Method in class
Cell
Reveals whether the Cell contains a mine or not.
I
invalidateLayout(Container)
- Method in class
World.WorldLayout
isClear()
- Method in class
Cell
Reveals whether the Cell is clear or not.
isFlagged()
- Method in class
Mine
Check whether the player has correctly marked this mine with a flag.
itemStateChanged(ItemEvent)
- Method in class
WorldFrame
Does nothing, but added to honour interface.
L
layoutContainer(Container)
- Method in class
World.WorldLayout
M
Main
- class
Main
.
Main()
- Constructor for class
Main
main(String[])
- Static method in class
Main
Marker
- class
Marker
.
A Marker is a type of CellDweller.
Marker(Cell)
- Constructor for class
Marker
Constructor for Markers.
maximumLayoutSize(Container)
- Method in class
World.WorldLayout
Mine
- class
Mine
.
A Mine is a type of CellDweller that the player is trying to detect and mark with a flag Marker.
Mine(Cell)
- Constructor for class
Mine
Constructor for Mines.
minimumLayoutSize(Container)
- Method in class
World.WorldLayout
mouseClicked(MouseEvent)
- Method in class
World.CellListener
N
NORTH
- Static variable in class
Direction
A predefined Direction representing North.
NORTH_EAST
- Static variable in class
Direction
A predefined Direction representing Northeast.
NORTH_WEST
- Static variable in class
Direction
A predefined Direction representing Northwest.
P
paintMineNumberColour()
- Method in class
Cell
Paints a Cell's 'mine number colour' on that Cell.
parentCell
- Variable in class
CellDweller
preferredLayoutSize(Container)
- Method in class
World.WorldLayout
Q
QUESTION_MARK
- Static variable in class
Marker
R
removeLayoutComponent(Component)
- Method in class
World.WorldLayout
removeMarker()
- Method in class
Cell
Removes a marker from the Cell.
removeMine()
- Method in class
Cell
Removes a mine from the Cell.
REVEAL_COLOR
- Static variable in class
Mine
reveal()
- Method in class
Mine
Reveal this mine.
S
setCell(Cell)
- Method in class
CellDweller
Set the Cell that this CellDweller is on.
setCellClicks(int)
- Method in class
World
Sets the number of cells the player has clicked.
setFlaggedMines(int)
- Method in class
World
Set the number of mines that have been correctly flagged.
setFlaggedNonMines(int)
- Method in class
World
Set the number of cells that have been incorrectly flagged.
setGameOver(boolean)
- Method in class
World
Sets the game over state to true or false.
setType(Color)
- Method in class
Marker
Set the 'type' of this marker -- flag or question mark, and paint its colour on the parent cell.
SOUTH
- Static variable in class
Direction
A predefined Direction representing South.
SOUTH_EAST
- Static variable in class
Direction
A predefined Direction representing Southeast.
SOUTH_WEST
- Static variable in class
Direction
A predefined Direction representing Southwest.
T
toString()
- Method in class
Cell
Creates a String representation of this Cell.
toString()
- Method in class
World.WorldLayout
toString()
- Method in class
Direction
Returns all information about an instance of a Direction as a string.
U
updateFlagCounters()
- Method in class
Marker
Update World's flag counters to keep score accurate.
updateScoreCard(String)
- Method in class
WorldFrame
Display the player's game results.
W
WEST
- Static variable in class
Direction
A predefined Direction representing West.
World
- class
World
.
A World is made up from a grid of square-shaped Cells.
World.CellListener
- class
World.CellListener
.
World.CellListener()
- Constructor for class
World.CellListener
World.DefaultFrame
- class
World.DefaultFrame
.
The world is just a GUI component that needs to be added to a window.
World.DefaultFrame()
- Constructor for class
World.DefaultFrame
World.WorldLayout
- class
World.WorldLayout
.
World.WorldLayout(int, int)
- Constructor for class
World.WorldLayout
World(int, int, WorldFrame)
- Constructor for class
World
Creates a new world with the specified number of columns and rows.
WorldFrame
- class
WorldFrame
.
WorldFrame()
- Constructor for class
WorldFrame
A
C
D
E
F
G
H
I
L
M
N
P
Q
R
S
T
U
W
Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
Generated by BlueJ