Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
movetranslation::AlgebraicMove Class Reference

#include <move_translator.hpp>

Collaboration diagram for movetranslation::AlgebraicMove:
Collaboration graph

Public Member Functions

 AlgebraicMove (const AlgebraicBoardSpace &start, const AlgebraicBoardSpace &end)
 
const AlgebraicBoardSpace start ()
 
const AlgebraicBoardSpace end ()
 
const gameboard::Move ToGameBoardMove ()
 

Static Public Member Functions

static const AlgebraicMove Create (const std::vector< AlgebraicBoardSpace > &algebraic_board_spaces)
 
static const AlgebraicMove Create (const std::vector< std::string > &tokens)
 
static const AlgebraicMove Create (const gameboard::Move &game_board_move)
 

Private Attributes

AlgebraicBoardSpace start_
 
AlgebraicBoardSpace end_
 

Detailed Description

Definition at line 35 of file move_translator.hpp.

Constructor & Destructor Documentation

◆ AlgebraicMove()

movetranslation::AlgebraicMove::AlgebraicMove ( const AlgebraicBoardSpace start,
const AlgebraicBoardSpace end 
)

Definition at line 45 of file move_translator.cpp.

Member Function Documentation

◆ Create() [1/3]

const AlgebraicMove movetranslation::AlgebraicMove::Create ( const gameboard::Move game_board_move)
static

Definition at line 69 of file move_translator.cpp.

◆ Create() [2/3]

const AlgebraicMove movetranslation::AlgebraicMove::Create ( const std::vector< AlgebraicBoardSpace > &  algebraic_board_spaces)
static

Definition at line 52 of file move_translator.cpp.

◆ Create() [3/3]

const AlgebraicMove movetranslation::AlgebraicMove::Create ( const std::vector< std::string > &  tokens)
static

Definition at line 61 of file move_translator.cpp.

◆ end()

const AlgebraicBoardSpace movetranslation::AlgebraicMove::end ( )

Definition at line 77 of file move_translator.cpp.

◆ start()

const AlgebraicBoardSpace movetranslation::AlgebraicMove::start ( )

Definition at line 75 of file move_translator.cpp.

◆ ToGameBoardMove()

const gameboard::Move movetranslation::AlgebraicMove::ToGameBoardMove ( )

Definition at line 79 of file move_translator.cpp.

Member Data Documentation

◆ end_

AlgebraicBoardSpace movetranslation::AlgebraicMove::end_
private

Definition at line 37 of file move_translator.hpp.

◆ start_

AlgebraicBoardSpace movetranslation::AlgebraicMove::start_
private

Definition at line 36 of file move_translator.hpp.


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