a class representing coordinates
a generic piece class. white is a boolean indicating the piece's color. legals is a vector indicating...
bool is_possible(coordinates dest)
verify if a move is within piece range
bool get_color()
retrieve the piece's color
virtual void move(coordinates dest, bool debug_info)
called to move the piece
virtual std::vector< coordinates > get_legals()
retrieve the piece's legal moves
virtual bool is_possible_attack(coordinates dest)
verify if a move is within piece attack range
piece_type get_type()
retrieve the piece's type
coordinates get_coord()
retrieve the piece's coordinates
piece(bool _white, coordinates _coord)
the constructor for the piece class
virtual void canonical_print_piece()
print the piece to the standard output in canonical form
bool get_has_moved()
retrieve if the piece has already moved during the game
virtual void print_piece()
print the piece to the standard output
std::vector< coordinates > legals
virtual void needed_space(coordinates dest, std::vector< coordinates > *to_calculate)
calculate the space needed for the piece to move
piece_type
Represent a piece type. Undefined for default piece.