package com.editev.chess.printer; import com.editev.chess.GameHTML; import com.editev.util.Lists; /** Prints the status of Black or White. * * @see See the source here. */ public class StatusPrinter extends Printer { public final boolean isWhite; public Printer capturedPrinter; public StatusPrinter( boolean isWhite ) { capturedPrinter = new CapturedPrinter( !isWhite ); this.isWhite = isWhite; } /** Prints the status of Black or White. * @param game the GameHTML with the board status and PrintStream for this board. */ public void print( GameHTML game ) { capturedPrinter.print( game ); } }