|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
| Uses of Piece in <Unnamed> |
|---|
| Fields in <Unnamed> declared as Piece | |
|---|---|
private Piece[][] |
Puzzle.board
|
private Piece |
PieceMove.destPiece
|
private Piece |
PieceMove.sourcePiece
|
| Methods in <Unnamed> that return Piece | |
|---|---|
Piece |
PieceMove.getDestPiece()
Accessor for the post-move piece |
Piece |
PieceMove.getSourcePiece()
Accessor for the pre-move piece |
private static Piece |
PuzzleLoader.readPiece(java.io.BufferedReader reader)
Reads a line, processes it, and returns a new Piece object |
| Methods in <Unnamed> with parameters of type Piece | |
|---|---|
void |
Puzzle.add(Piece piece)
Add the piece to the puzzle. |
boolean |
Puzzle.isEmpty(int x,
int y,
Piece piece)
Checks if the specified location on the puzzle board is empty or occupied by the specified piece |
void |
Puzzle.occupyLocation(int x,
int y,
Piece piece)
Sets the piece as the occupant of the specified location |
| Constructors in <Unnamed> with parameters of type Piece | |
|---|---|
PieceMove(Piece source,
Piece dest,
char axis,
int delta)
Constructor: initializes the data members with the provided values |
|
Puzzle(int width,
int height,
java.util.ArrayList pieces,
Piece[][] board,
java.util.ArrayList moveList)
Private Constructor: used for cloning, no error checking is performed |
|
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||