Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
R
S
T
U
V
W
S
Secondscreen
- Class in
checkers.view
This is the second screen of options.
Secondscreen(GameController, Firstscreen, CheckerGUI, NetworkView)
- Constructor for class checkers.view.
Secondscreen
Creates new Secondscreen
selectColors()
- Method in class checkers.model.
CheckersGame
This method sets the colors of pieces that each player will be
selectSpace(int)
- Method in class checkers.controller.
GameController
This method should be called to select a space on the board, either as the starting point or the ending point for a move.
selectSpace(int)
- Method in class checkers.model.
CheckersGame
Determines if a space is selectable based on whose turn it is.
setBoard(Board)
- Method in class checkers.model.
Rules
setBoard Sets the board
setDraw(boolean)
- Method in class checkers.model.
NetPacket
setMove(Move)
- Method in class checkers.model.
NetPacket
setNetwork()
- Method in class checkers.view.
NetworkView
Registers networkView with observables.
setPlayer(int)
- Method in class checkers.controller.
GameController
Sets the playerNum for a networked game.
setPlayer1(String)
- Method in class checkers.model.
NetPacket
setPlayer1Color(int)
- Method in class checkers.model.
CheckersGame
Set the color for a player using the passed in value.
setPlayer1Color(int)
- Method in class checkers.model.
NetPacket
setPlayer2(String)
- Method in class checkers.model.
NetPacket
setPlayerName(int, String)
- Method in class checkers.controller.
GameController
Tell the model to associate the given name with the given player number.
setPlayerName(int, String)
- Method in class checkers.model.
CheckersGame
Set the name for the player using the passed in values.
setPlayerName(int, String)
- Method in class checkers.view.
NetworkView
Sets the player's name so it can be sent over the network on initial handshake.
setPlayerNum(int)
- Method in class checkers.model.
CheckersGame
setResign(boolean)
- Method in class checkers.model.
NetPacket
setSecondScreen(Secondscreen)
- Method in class checkers.view.
Firstscreen
setType(int)
- Method in class checkers.model.
Piece
Sets the Piece's type (SINGLE or KING)
setType(int)
- Method in class checkers.view.
Secondscreen
showEndGame(String)
- Method in class checkers.controller.
GameController
Display to local players that the game has ended with the message provided.
SINGLE
- Static variable in interface checkers.
CheckersConstants
sizeOf()
- Method in class checkers.model.
Board
This method returns the size of the board
startGame()
- Method in class checkers.controller.
GameController
Begin the game
startGame()
- Method in class checkers.model.
CheckersGame
This method will start the game play.
startLocation()
- Method in class checkers.model.
Move
Return the starting location of this move.
stateChanged(ChangeEvent)
- Method in class checkers.view.
Secondscreen
stopHostListening()
- Method in class checkers.view.
NetworkView
Cancel Host Listening without closing the program.
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
R
S
T
U
V
W