|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Move | |
|---|---|
| controller | |
| model.moves | |
| model.pieces | |
| Uses of Move in controller |
|---|
| Methods in controller that return Move | |
|---|---|
Move |
Control.createMove(Cell a,
Cell b)
Is responsible for creating a Move based on it's parameters which are the source cell of the Move, and the destination cell of the Move, and finally returning it. |
| Methods in controller with parameters of type Move | |
|---|---|
boolean |
Control.updateGame(Move x)
transformer(mutative): This method is responsible for changing the current game based on the Move passed as parameter, consequently it needs to execute the argument Move. |
| Uses of Move in model.moves |
|---|
| Subclasses of Move in model.moves | |
|---|---|
class |
Capture
Represents a move that captures an opposite piece. |
class |
CapturePromotion
Represents a promotion that also captures an opponent's piece. |
class |
Castling
Represents the move of the small and great castling |
class |
Promotion
Represents the Promotion move. |
| Uses of Move in model.pieces |
|---|
| Methods in model.pieces that return types with arguments of type Move | |
|---|---|
java.util.List<Move> |
Bishop.moves(Cell p,
ChessBoard b)
Creates and returns a List of all the possible Moves the Bishop can execute. |
java.util.List<Move> |
Queen.moves(Cell p,
ChessBoard b)
Creates and returns a List of all the possible Moves the Queen can execute. |
java.util.List<Move> |
Pawn.moves(Cell p,
ChessBoard b)
Creates and returns a List of all the possible Moves the given Pawn can execute. |
java.util.List<Move> |
King.moves(Cell p,
ChessBoard b)
Creates and returns a List of all the possible Moves the King can execute. |
java.util.List<Move> |
Knight.moves(Cell p,
ChessBoard b)
Creates and returns a List of all the possible Moves the Knight can execute. |
abstract java.util.List<Move> |
Piece.moves(Cell x,
ChessBoard z)
Finds and returns all the possible moves of the Piece in the given Cell, in the given ChessBoard. |
java.util.List<Move> |
Rook.moves(Cell p,
ChessBoard b)
Creates and returns a List of all the possible Moves the Rook can execute. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||