Index

A C D E F G H I L M P R S T U V X Y 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

adjacentMines() - Method in class minesweeper.model.Tile
Returns the number of adjacent mines.
App - Class in minesweeper
 
App() - Constructor for class minesweeper.App
 

C

canvas() - Method in class minesweeper.view.Play
Returns the canvas of the game.
Canvas - Class in minesweeper.view
The Canvas class is used to draw a Minesweeper game.
Canvas() - Constructor for class minesweeper.view.Canvas
 
Controller - Class in minesweeper.controller
The Minesweeper view controller.
Controller(Minesweeper, View) - Constructor for class minesweeper.controller.Controller
Class constructor.

D

duration() - Method in class minesweeper.model.Game
Returns the duration of the game.

E

end() - Method in class minesweeper.model.Game
Notifies all listeners that the game has ended.
end() - Method in class minesweeper.view.Play
Returns the end button of the game.

F

flag() - Method in class minesweeper.model.Tile
Flags the tile if it's hidden or unflags it if it's flagged.
Flagged - Enum constant in enum class minesweeper.model.Tile.Visibility
 
flags() - Method in class minesweeper.model.Game
Returns the number of flags placed on the tiles.

G

Game - Class in minesweeper.model
The Game class represents a Minesweeper game.
Game() - Constructor for class minesweeper.model.Game
Class constructor.
Game.Result - Enum Class in minesweeper.model
The Result enum represents the possible results of a game.
games() - Method in class minesweeper.model.Minesweeper
Returns the number of games played.

H

Hidden - Enum constant in enum class minesweeper.model.Tile.Visibility
 

I

isMine - Variable in class minesweeper.model.Tile
 

L

load() - Method in class minesweeper.model.Minesweeper
Loads stats from file and notifies observers.
Loss - Enum constant in enum class minesweeper.model.Game.Result
 

M

main(String[]) - Static method in class minesweeper.App
 
menu() - Method in class minesweeper.view.View
Returns the menu panel.
Menu - Class in minesweeper.view
The Menu class is used to start a Minesweeper game.
mines - Variable in class minesweeper.model.Game
 
minesweeper - package minesweeper
 
Minesweeper - Class in minesweeper.model
The Minesweeper class holds the statistics of the Minesweeper game.
Minesweeper() - Constructor for class minesweeper.model.Minesweeper
Class constructor.
minesweeper.controller - package minesweeper.controller
 
minesweeper.model - package minesweeper.model
 
minesweeper.view - package minesweeper.view
 

P

paint(Graphics) - Method in class minesweeper.view.Canvas
 
play() - Method in class minesweeper.view.Menu
Returns the play button.
play() - Method in class minesweeper.view.View
Returns the play panel.
Play - Class in minesweeper.view
The Game class is a view for a Minesweeper game.

R

reveal() - Method in class minesweeper.model.Tile
Reveals the tile if it's hidden.
Revealed - Enum constant in enum class minesweeper.model.Tile.Visibility
 

S

SCALE - Static variable in class minesweeper.view.Canvas
 
start() - Method in class minesweeper.model.Game
Notifies all listeners that the game has started (in order to reset).

T

Terminated - Enum constant in enum class minesweeper.model.Game.Result
 
Tile - Class in minesweeper.model
The Tile class represents a single tile in the Minesweeper game.
Tile.Visibility - Enum Class in minesweeper.model
The Visibility enum represents the visibility of a tile.
tiles - Variable in class minesweeper.model.Game
 

U

update() - Method in class minesweeper.model.Game
Updates the duration of the game.
update(Observable, Object) - Method in class minesweeper.model.Game
Updates when notified by a tile.
update(Observable, Object) - Method in class minesweeper.model.Minesweeper
Updates when notified by a game.
update(Observable, Object) - Method in class minesweeper.view.Canvas
Updates when notified by a game.
update(Observable, Object) - Method in class minesweeper.view.Menu
Updates when notified by Minesweeper.
update(Observable, Object) - Method in class minesweeper.view.Play
Updates when notified by a game.
update(Observable, Object) - Method in class minesweeper.view.View
Updates when notified by a navigator.

V

valueOf(String) - Static method in enum class minesweeper.model.Game.Result
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class minesweeper.model.Tile.Visibility
Returns the enum constant of this class with the specified name.
values() - Static method in enum class minesweeper.model.Game.Result
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class minesweeper.model.Tile.Visibility
Returns an array containing the constants of this enum class, in the order they are declared.
victories() - Method in class minesweeper.model.Minesweeper
Returns the number of victories.
Victory - Enum constant in enum class minesweeper.model.Game.Result
 
View - Class in minesweeper.view
 
View() - Constructor for class minesweeper.view.View
Class constructor.
visibility() - Method in class minesweeper.model.Tile
Returns the visibility of the tile.

X

x - Variable in class minesweeper.model.Tile
 

Y

y - Variable in class minesweeper.model.Tile
 
A C D E F G H I L M P R S T U V X Y 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form