com.editev.chess.piece
Class Pawn.White

java.lang.Object
  |
  +--com.editev.chess.Chess
        |
        +--com.editev.chess.piece.Piece
              |
              +--com.editev.chess.piece.Pawn
                    |
                    +--com.editev.chess.piece.Pawn.White
Enclosing class:
Pawn

public static class Pawn.White
extends Pawn

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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

MOVES

public static final byte[][] MOVES
An array of all the possible Pawn.White moves as byte offsets.

PIECE

public static final Pawn.White PIECE
The unique/singleton instantiation of Pawn.White.
Constructor Detail

Pawn.White

private Pawn.White()
This class is a singleton, so the constructor is private.