com.editev.chess
Class Chess.White

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

public static class Chess.White
extends java.lang.Object

A set of constants representing White's pieces.


Field Summary
static byte BISHOP
          Piece index for White's Bishop.
static byte KING
          Piece index for White's King.
static byte KNIGHT
          Piece index for White's Knight.
static byte PAWN
          Piece index for White's Pawn.
static byte QUEEN
          Piece index for White's Queen.
static byte ROOK
          Piece index for White's Rook.
static byte WHITE
          White's home rank, also used as an identifier for White
 
Constructor Summary
Chess.White()
           
 
Method Summary
static boolean is(byte piece)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

WHITE

public static final byte WHITE
White's home rank, also used as an identifier for White

KING

public static final byte KING
Piece index for White's King.

QUEEN

public static final byte QUEEN
Piece index for White's Queen.

ROOK

public static final byte ROOK
Piece index for White's Rook.

BISHOP

public static final byte BISHOP
Piece index for White's Bishop.

KNIGHT

public static final byte KNIGHT
Piece index for White's Knight.

PAWN

public static final byte PAWN
Piece index for White's Pawn.
Constructor Detail

Chess.White

public Chess.White()
Method Detail

is

public static final boolean is(byte piece)
Parameters:
piece - the byte index of the Piece
Returns:
true if the piece is White (empty pieces are neither Black nor White).