Public Member Functions | Static Public Member Functions

QtGNUChessControler Class Reference

Inheritance diagram for QtGNUChessControler:
Controler< ChessBoard > Listener< Move< ChessBoard::Coords > >

List of all members.

Public Member Functions

void start ()
 Start the fork wrapping GNUChess The standard input and output from GNUChess are redirected to discuss with the parent GNUChess is started with -x option to make it easier to collect moves from it.
Move< ChessBoard::CoordsgetMove ()
 Gets the move that the controler wants to play This function is generally waiting for the move from the controler.
void notify (const Move< ChessBoard::Coords > &move)
void setColorControled (int color)

Static Public Member Functions

static bool checkAvailability ()

Member Function Documentation

Move< ChessBoard::Coords > QtGNUChessControler::getMove (  )  [virtual]

Gets the move that the controler wants to play This function is generally waiting for the move from the controler.

Returns:

Implements Controler< ChessBoard >.

void QtGNUChessControler::notify ( const Move< ChessBoard::Coords > &  message  )  [virtual]

function called with the message to be passed

Parameters:
message 

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

void QtGNUChessControler::setColorControled ( int  color  )  [inline, virtual]

Since GNUChess basically does not know which color it is controlling, when color is white, we tell it to GNUChess

Reimplemented from Controler< ChessBoard >.


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