|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.editev.chess.Chess
|
+--com.editev.chess.piece.Piece
|
+--com.editev.chess.piece.Pawn
|
+--com.editev.chess.piece.Pawn.White
This derivation of Pawn represents a White pawn, and only differs from the Black pawn by its list of moves.
| Inner classes inherited from class com.editev.chess.piece.Pawn |
Pawn.Black,
Pawn.White |
| Inner classes inherited from class com.editev.chess.Chess |
Chess.Black,
Chess.White |
| Field Summary | |
static byte[][] |
MOVES
An array of all the possible Pawn.White moves as byte offsets. |
static Pawn.White |
PIECE
The unique/singleton instantiation of Pawn.White. |
| Fields inherited from class com.editev.chess.piece.Pawn |
EP_CAPTURE |
| Fields inherited from class com.editev.chess.piece.Piece |
moves |
| Fields inherited from class com.editev.chess.Chess |
BLACK,
NO_MOVE,
NO_PIECE,
WHITE |
| Constructor Summary | |
private |
Pawn.White()
This class is a singleton, so the constructor is private. |
| Methods inherited from class com.editev.chess.piece.Pawn |
applyMoveToBoard,
applyMoveToState,
incrementMoveIndex,
isCapture,
isepCapture,
isIllegal,
isIrreversible,
isPromotion,
isPromotion,
isTwoSquare,
moreMoves,
undoMoveToBoard |
| Methods inherited from class com.editev.chess.piece.Piece |
firstMoveIndex,
getColumnOffset,
getRowOffset,
pieceBetween,
setMoveIndex |
| Methods inherited from class com.editev.chess.Chess |
notColor,
toColor,
toColor,
toColorName |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final byte[][] MOVES
public static final Pawn.White PIECE
| Constructor Detail |
private Pawn.White()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||