Chess
Public Member Functions | Public Attributes | List of all members
Piece Class Reference

Class structure for the pieces that fill a game state's board. More...

#include <piece.h>

Public Member Functions

 Piece (int pos, Type type, bool team_white)
 
 Piece (const Piece &other)
 
Pieceoperator= (const Piece &other)
 
 Piece (Piece &&other) noexcept
 
Pieceoperator= (Piece &&other) noexcept
 
std::vector< int > get_possible_moves (const Chessboard &chessboard)
 Returns possible moves for one piece.
 
bool is_opposing_team (std::optional< Piece > other) const
 

Public Attributes

int pos
 
Type type
 
bool team_white
 

Detailed Description

Class structure for the pieces that fill a game state's board.


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