Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Public Member Functions | List of all members
piece_action Class Reference

An action to be done by a piece. More...

#include <piece_action.h>

Public Member Functions

 piece_action (const chess_color color, const piece_type pt, const piece_action_type at, const square &from, const square &to)
 Move of move from a square to another.
 
 piece_action (const chess_color color, const piece_type pt, const piece_action_type at, const std::string &from_str, const std::string &to_str)
 Move of move from a square to another.
 
auto get_action_type () const noexcept
 
const auto & get_from () const noexcept
 
auto get_piece_type () const noexcept
 
auto get_color () const noexcept
 
const auto & get_to () const noexcept
 

Detailed Description

An action to be done by a piece.

Examples:

Constructor & Destructor Documentation

◆ piece_action() [1/2]

piece_action::piece_action ( const chess_color  color,
const piece_type  pt,
const piece_action_type  at,
const square from,
const square to 
)
explicit

Move of move from a square to another.

◆ piece_action() [2/2]

piece_action::piece_action ( const chess_color  color,
const piece_type  pt,
const piece_action_type  at,
const std::string &  from_str,
const std::string &  to_str 
)
explicit

Move of move from a square to another.

Member Function Documentation

◆ get_action_type()

auto piece_action::get_action_type ( ) const
inlinenoexcept

◆ get_color()

auto piece_action::get_color ( ) const
inlinenoexcept

◆ get_from()

const auto & piece_action::get_from ( ) const
inlinenoexcept

◆ get_piece_type()

auto piece_action::get_piece_type ( ) const
inlinenoexcept

◆ get_to()

const auto & piece_action::get_to ( ) const
inlinenoexcept

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