Public Member Functions

ConsoleChessDisplay Class Reference

Renderer outputting on console. More...

Inheritance diagram for ConsoleChessDisplay:
Renderer2D< ChessBoard > Renderer< ChessBoard > Listener< Move< ChessBoard::Coords > >

List of all members.

Public Member Functions

void notify (const Move< ChessBoard::Coords > &move)
virtual void displayBoard ()
void displayPiece (const ChessBoard::Coords &position)

Detailed Description

Renderer outputting on console.

The output is looking similar to GNUChess console output. The following letters are used for the pieces:

The white are in upper case, black in lower case Whites are always displayed at the bottom


Member Function Documentation

virtual void ConsoleChessDisplay::displayBoard (  )  [inline, virtual]

draw call to display the pieces on 2D board

Reimplemented from Renderer2D< ChessBoard >.

void ConsoleChessDisplay::displayPiece ( const ChessBoard::Coords position  )  [inline, virtual]

do a draw call for a piece

Parameters:
position on the board of the piece to draw

Implements Renderer< ChessBoard >.

void ConsoleChessDisplay::notify ( const Move< ChessBoard::Coords > &  move  )  [inline, virtual]

Causes a complete redraw of the game

Implements Listener< Move< ChessBoard::Coords > >.


The documentation for this class was generated from the following file:
 All Classes Functions Variables