Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
B
C
D
G
I
M
P
R
S
T
U
X
Y
G
getBoard()
- Method in class boardGame.
Piece
Returns the board on which this piece has been placed.
getColumn()
- Method in class boardGame.
Piece
Returns the column that this piece is in, or -1 if this piece is not currently on some board.
getColumns()
- Method in class boardGame.
Board
Returns the number of columns in this board.
getJPanel()
- Method in class boardGame.
Board
Returns the JPanel on which this board is displayed.
getName()
- Method in class boardGame.
Piece
Returns the name of this piece; possibly useful for debugging.
getPiece(int, int)
- Method in class boardGame.
Board
Returns the topmost piece at the given row and column in this board, or null if the given location is empty.
getPieces(int, int)
- Method in class boardGame.
Board
Returns a (possibly empty) Stack of all the pieces in the given position.
getRow()
- Method in class boardGame.
Piece
Returns the row that this piece is in, or -1 if this piece is not currently on some board.
getRows()
- Method in class boardGame.
Board
Returns the number of rows in this board.
getSelectedColumn()
- Method in class boardGame.
Board
Returns the column number (counting from zero) of the currently selected square, or -1 if none is selected.
getSelectedPiece()
- Method in class boardGame.
Board
Returns the currently selected piece, or
null
if no piece has been selected on this board.
getSelectedRow()
- Method in class boardGame.
Board
Returns the row number (counting from zero) of the currently selected square, or -1 if none is selected.
getSpeed()
- Method in class boardGame.
Board
Returns the default speed (in squares per second) of pieces on this board.
getSpeed()
- Method in class boardGame.
Piece
Get the speed (in squares/second) at which this piece will move.
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
B
C
D
G
I
M
P
R
S
T
U
X
Y