tartan 1.2.2.1
Chess API
|
Thrown when tt::chess::Chessboard has no King object of certain tt::Piece::Color. More...
#include <exceptions.hpp>
Public Member Functions | |
no_king (Piece::Color c, const std::string &what_arg="Board does not have a king") | |
Piece::Color | color () const |
Get the King color. | |
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) |
Public Attributes | |
Piece::Color | e_color |
Thrown when tt::chess::Chessboard has no King object of certain tt::Piece::Color.
|
inline |
c | color of King object that is not present |
what_arg | message string |
|
inline |