Public Member Functions

KeyboardControler Class Reference

Simpler controler implementation to get keyboard inputs. More...

#include <Controlers/KeyboardControler.hpp>

Inheritance diagram for KeyboardControler:
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)

Detailed Description

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


Member Function Documentation

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.

Returns:

Implements Controler< ChessBoard >.

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

function called with the message to be passed

Parameters:
message 

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


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