Controler receiving the orders from the Qt UI. More...
#include <Controlers/QtControler.hpp>
Public Member Functions | |
Move< ChessBoard::Coords > | getMove () |
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. |
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.
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.
Implements Controler< ChessBoard >.
void QtControler::notify | ( | const Move< ChessBoard::Coords > & | message | ) | [inline, virtual] |
function called with the message to be passed
message |
Implements Listener< Move< ChessBoard::Coords > >.
void QtControler::setColorControled | ( | int | color | ) | [inline, virtual] |
Defines the color used by the controler.
color |
Reimplemented from Controler< ChessBoard >.