Simpler controler implementation to get keyboard inputs. More...
#include <Controlers/KeyboardControler.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) |
Simpler controler implementation to get keyboard inputs.
This controler just get and parse the input from the standard input of the console The parser is able to strip out any space from the input The notify()
is not used
Move< ChessBoard::Coords > KeyboardControler::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 KeyboardControler::notify | ( | const Move< ChessBoard::Coords > & | message | ) | [inline, virtual] |
function called with the message to be passed
message |
Implements Listener< Move< ChessBoard::Coords > >.