Public Member Functions

QtControler Class Reference

Controler receiving the orders from the Qt UI. More...

#include <Controlers/QtControler.hpp>

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

List of all members.

Public Member Functions

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)
 Defines the color used by the controler.

Detailed Description

Controler receiving the orders from the Qt UI.

The move is received by a signal from the Qt UI. Since two different threads reach the class. Once the new move is received, the getMove() function will continue and return it.


Member Function Documentation

Move< ChessBoard::Coords > QtControler::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 QtControler::notify ( const Move< ChessBoard::Coords > &  message  )  [inline, virtual]

function called with the message to be passed

Parameters:
message 

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

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

Defines the color used by the controler.

Parameters:
color 

Reimplemented from Controler< ChessBoard >.


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