Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
gameboard::ExecutedMove Struct Reference

A change in the state of a gameboard::GameBoard represented by a gameboard::Move, and each of the gameboard::GamePiece objects located at the start and end locations of the Move. More...

#include <move_data_structs.hpp>

Collaboration diagram for gameboard::ExecutedMove:
Collaboration graph

Public Member Functions

bool operator== (const ExecutedMove other)
 == operator overload; requires equality of pieces and space, but not moves_since_last capture.
 

Public Attributes

Move spaces
 
gameboard::GamePiece moving_piece
 
gameboard::GamePiece destination_piece
 
MoveCountType moves_since_last_capture
 

Detailed Description

A change in the state of a gameboard::GameBoard represented by a gameboard::Move, and each of the gameboard::GamePiece objects located at the start and end locations of the Move.

gameboard::ExecutedMove.moving_piece is located at gameboard::ExecutedMove.spaces.start, and gameboard::ExecutedMove.destication_piece is located at gameboard::ExecutedMove.spaces.end rior to the change in state.

Definition at line 93 of file move_data_structs.hpp.

Member Function Documentation

◆ operator==()

bool gameboard::ExecutedMove::operator== ( const ExecutedMove  other)
inline

== operator overload; requires equality of pieces and space, but not moves_since_last capture.

Definition at line 101 of file move_data_structs.hpp.

Member Data Documentation

◆ destination_piece

gameboard::GamePiece gameboard::ExecutedMove::destination_piece

Definition at line 96 of file move_data_structs.hpp.

◆ moves_since_last_capture

MoveCountType gameboard::ExecutedMove::moves_since_last_capture

Definition at line 97 of file move_data_structs.hpp.

◆ moving_piece

gameboard::GamePiece gameboard::ExecutedMove::moving_piece

Definition at line 95 of file move_data_structs.hpp.

◆ spaces

Move gameboard::ExecutedMove::spaces

Definition at line 94 of file move_data_structs.hpp.


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