com.editev.chess.printer
Class GamePrinter

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

public class GamePrinter
extends Printer

Prints an entire chess game!

See Also:
the source here.

Inner classes inherited from class com.editev.chess.Chess
Chess.Black, Chess.White
 
Field Summary
 Printer blackStatus
          Print the status of Black.
 Printer boardPrinter
          Print the entire board.
 Printer historyPrinter
          Print the move history.
 Printer whiteStatus
          Print the status of White.
 
Fields inherited from class com.editev.chess.Chess
BLACK, NO_MOVE, NO_PIECE, WHITE
 
Constructor Summary
GamePrinter()
           
 
Method Summary
 void print(GameHTML game)
          Print the whole game area including the board, the captured pieces and the game history.
 
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

blackStatus

public Printer blackStatus
Print the status of Black.

whiteStatus

public Printer whiteStatus
Print the status of White.

boardPrinter

public Printer boardPrinter
Print the entire board.

historyPrinter

public Printer historyPrinter
Print the move history.
Constructor Detail

GamePrinter

public GamePrinter()
Method Detail

print

public void print(GameHTML game)
Print the whole game area including the board, the captured pieces and the game history.
Overrides:
print in class Printer
Parameters:
game - the GameHTML with the board status and PrintStream for this board.