Thrown when piece does not belong to Board object in which it is being processed.
More...
#include <exceptions.hpp>
Thrown when piece does not belong to Board object in which it is being processed.
◆ foreign_piece()
tt::ex::foreign_piece::foreign_piece |
( |
const Piece * |
p, |
|
|
const Board * |
b, |
|
|
const std::string & |
what_arg = "Piece does not belong to this board" |
|
) |
| |
|
inline |
- Parameters
-
p | Piece that is foreign |
b | Board which were trying to do something with p (p does not belong to b Board) |
what_arg | message string |
◆ board()
const Board * tt::ex::foreign_piece::board |
( |
| ) |
const |
|
inline |
Get the Board object.
- Returns
- Board object that tried to process foreign Piece object
The documentation for this class was generated from the following file: