com.editev.chess.printer
Class CapturedPrinter

java.lang.Object
  |
  +--com.editev.chess.Chess
        |
        +--com.editev.chess.printer.Printer
              |
              +--com.editev.chess.printer.CapturedPrinter

public class CapturedPrinter
extends Printer

Prints the array of captured pieces.

See Also:
the source here.

Inner classes inherited from class com.editev.chess.Chess
Chess.Black, Chess.White
 
Field Summary
(package private)  boolean isWhite
           
private static java.lang.String STYLE_TEMPLATE
          A template for CSS styles for captured pieces..
 
Fields inherited from class com.editev.chess.Chess
BLACK, NO_MOVE, NO_PIECE, WHITE
 
Constructor Summary
CapturedPrinter(boolean isWhite)
           
 
Method Summary
 void print(GameHTML game)
          Prints the array of captured pieces.
static java.lang.String styleName(boolean isWhitePiece)
          The name of a style for a captured piece.
 
Methods inherited from class com.editev.chess.printer.Printer
eval
 
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

STYLE_TEMPLATE

private static java.lang.String STYLE_TEMPLATE
A template for CSS styles for captured pieces..

isWhite

boolean isWhite
Constructor Detail

CapturedPrinter

public CapturedPrinter(boolean isWhite)
Method Detail

styleName

public static java.lang.String styleName(boolean isWhitePiece)
The name of a style for a captured piece.
Returns:
name of the style representing that piece and square color.

print

public void print(GameHTML game)
Prints the array of captured pieces.
Overrides:
print in class Printer
Parameters:
game - the GameHTML with the board status and PrintStream for this board.