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

A gameboard::BoardSpace pair (start and end). More...

#include <move_data_structs.hpp>

Collaboration diagram for gameboard::Move:
Collaboration graph

Public Member Functions

bool operator== (const Move &other) const
 

Public Attributes

gameboard::BoardSpace start
 
gameboard::BoardSpace end
 

Detailed Description

A gameboard::BoardSpace pair (start and end).

Does not have a gameboard::GamePiece object associated with it (unlike a gameboard::ExecutedMove). To know what gameboard::GamePiece would be associated with a gameboard::Move, must compare with a gameboard::GameBoard.board_map_.

Definition at line 18 of file move_data_structs.hpp.

Member Function Documentation

◆ operator==()

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

Definition at line 22 of file move_data_structs.hpp.

Member Data Documentation

◆ end

gameboard::BoardSpace gameboard::Move::end

Definition at line 20 of file move_data_structs.hpp.

◆ start

gameboard::BoardSpace gameboard::Move::start

Definition at line 19 of file move_data_structs.hpp.


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