com.editev.chess.piece
Class Pawn.Black

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

public static class Pawn.Black
extends Pawn

This derivation of Pawn represents a Black pawn, and only differs from the White 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.Black moves as byte offsets.
static Pawn.Black PIECE
          The unique/singleton instantiation of Pawn.Black.
 
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.Black()
          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.Black moves as byte offsets.

PIECE

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

Pawn.Black

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