tartan 1.2.2.1
Chess API
|
Thrown when trying to Board::makeMove() on Piece that has wrong Piece::Color. More...
#include <exceptions.hpp>
Public Member Functions | |
piece_in_wrong_color (const Piece *p, const Piece::Position &to, const std::string &what_arg="Moved piece is in wrong color") | |
Public Member Functions inherited from tt::ex::illegal_move | |
illegal_move (const Piece *p, const Piece::Position &to, const std::string &what_arg="Illegal move") | |
const Piece * | piece () const |
Get Piece object. | |
const Piece::Position & | to () const |
Get move target location. | |
Public Member Functions inherited from std::logic_error | |
T | logic_error (T... args) |
T | what (T... args) |
Public Member Functions inherited from std::exception | |
T | what (T... args) |
T | ~exception (T... args) |
T | operator= (T... args) |
T | exception (T... args) |
Thrown when trying to Board::makeMove() on Piece that has wrong Piece::Color.
|
inline |
p | Piece object that is in wrong color |
to | target Position of move |
what_arg | message string |