tartan  1.2.1.0
tt::ex::tile_is_empty Class Reference

Thrown when selected Piece location is empty of the Board. More...

#include <exceptions.hpp>

Inheritance diagram for tt::ex::tile_is_empty:
[legend]
Collaboration diagram for tt::ex::tile_is_empty:
[legend]

Public Member Functions

 tile_is_empty (const Piece::Position &from, const Piece::Position &to, const std::string &what_arg="Selected tile is empty")
 
const Piecepiece ()=delete
 
const Piece::Positionfrom () const
 Get empli tile Position. More...
 
- 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 Piecepiece () const
 Get Piece object. More...
 
const Piece::Positionto () const
 Get move target location. More...
 
- Public Member Functions inherited from std::logic_error
logic_error (T... args)
 
what (T... args)
 
- Public Member Functions inherited from std::exception
what (T... args)
 
~exception (T... args)
 
operator= (T... args)
 
exception (T... args)
 

Detailed Description

Thrown when selected Piece location is empty of the Board.

Constructor & Destructor Documentation

◆ tile_is_empty()

tt::ex::tile_is_empty::tile_is_empty ( const Piece::Position from,
const Piece::Position to,
const std::string what_arg = "Selected tile is empty" 
)
inline
Parameters
fromPosition turn were performed from
toPosition turn were performed to
what_argmessage string

Member Function Documentation

◆ from()

const Piece::Position& tt::ex::tile_is_empty::from ( ) const
inline

Get empli tile Position.

Returns
empty tile Position

The documentation for this class was generated from the following file: