Skip navigation links
A B C D E F G I M P R S T 

A

actionPerformed(ActionEvent) - Method in class ButtonListener
The action performed by the ActionListener.

B

Board - Class in <Unnamed>
This class implements the visual part of a board for playing the game of Othello.
Board() - Constructor for class Board
Construct the board of Othello.
board - Variable in class ButtonListener
 
Board.Memento - Class in <Unnamed>
 
ButtonListener - Class in <Unnamed>
This class handles button clicks to save/restore snapshots.
ButtonListener(Board, Caretaker, Boolean) - Constructor for class ButtonListener
 

C

caretaker - Variable in class ButtonListener
 
Caretaker - Class in <Unnamed>
Caretaker of a snapshot of the Othello's board.
Caretaker() - Constructor for class Caretaker
 
cell - Variable in class Board
 
cell - Variable in class Board.Memento
 
cell - Variable in class Mediator
 
col - Variable in class PositionListener
 
colors - Static variable in class Position
Define the colors of background, and either player.

D

diameter - Static variable in class Position
Diameter in pixels of a position.
diamSub1 - Static variable in class Position
 
dimension - Static variable in class Position
 
dotColor - Static variable in class Board
 
dx_array - Static variable in class Mediator
 
dy_array - Static variable in class Mediator
 

E

empty - Static variable in class Position
Symbolic representation of an empty position.

F

first - Static variable in class Position
Symbolic representation of the first player.

G

gap - Static variable in class Board
 
get() - Method in class Caretaker
Return the snapshot helf, if any
getInsets() - Method in class Board
Define the insets of the board.
getMemento() - Method in class Board
Return a snapshot of this board.
getPreferredSize() - Method in class Position
Define the preferred size of a position.
getState() - Method in class Position
Get the state of this position.

I

ins - Static variable in class Board
 
insets - Static variable in class Board
 

M

Main - Class in <Unnamed>
This is a driver to host a board to play the game of Othello.
Main(String) - Constructor for class Main
Construct the main frame.
main(String[]) - Static method in class Main
Program entry point.
mediate(int, int) - Method in class Mediator
Called when position at the given row and col is clicked.
mediator - Variable in class Board
 
Mediator - Class in <Unnamed>
This class mediates (handles) mouse clicks on a position.
Mediator(Position[][]) - Constructor for class Mediator
Construct a position.
mediator - Variable in class PositionListener
 
Memento(Position[][]) - Constructor for class Board.Memento
 
mouseClicked(MouseEvent) - Method in class PositionListener
Handle a mouse click on the position whose coordinates where set at construction.

P

paint(Graphics) - Method in class Board
Paint the board of Othello.
paint(Graphics) - Method in class Position
Paint this position according to its state.
Position - Class in <Unnamed>
This class implements a position of the game of Othello.
Position() - Constructor for class Position
 
PositionListener - Class in <Unnamed>
This class handles mouse clicks on a position whose coordinates are set at construction.
PositionListener(int, int, Mediator) - Constructor for class PositionListener
Construct the listener.

R

restore - Static variable in class Main
Define the label of the restore button.
row - Variable in class PositionListener
 

S

save - Variable in class ButtonListener
 
save - Static variable in class Main
Define the label of the save button.
second - Static variable in class Position
Symbolic representation of the second player.
set(Object) - Method in class Caretaker
Hold the snapshot passed as argument
setMemento(Object) - Method in class Board
Restore this board to a previous state.
setState(int) - Method in class Position
Set the state of this position.
size - Static variable in class Board
The number of position along the side of the board.
snapshot - Variable in class Caretaker
 
state - Variable in class Position
 
step - Static variable in class Board
 

T

toFlip - Variable in class Mediator
 
A B C D E F G I M P R S T 
Skip navigation links