Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
game::PlayerInputTranslator Class Reference

#include <player_input_translator.hpp>

Collaboration diagram for game::PlayerInputTranslator:
Collaboration graph

Public Member Functions

gameboard::PieceColor GetPieceColorFromString (std::string input_color_name)
 
EvaluatorType GetEvaluatorTypeFromString (std::string input_evaluator_name)
 

Static Private Attributes

static const std::unordered_map< std::string, gameboard::PieceColorpiece_color_name_to_enum_
 
static const std::unordered_map< std::string, EvaluatorTypeevaluator_name_to_enum_
 

Detailed Description

Definition at line 9 of file player_input_translator.hpp.

Member Function Documentation

◆ GetEvaluatorTypeFromString()

EvaluatorType game::PlayerInputTranslator::GetEvaluatorTypeFromString ( std::string  input_evaluator_name)
inline

Definition at line 16 of file player_input_translator.hpp.

◆ GetPieceColorFromString()

gameboard::PieceColor game::PlayerInputTranslator::GetPieceColorFromString ( std::string  input_color_name)
inline

Definition at line 12 of file player_input_translator.hpp.

Member Data Documentation

◆ evaluator_name_to_enum_

const std::unordered_map<std::string, EvaluatorType> game::PlayerInputTranslator::evaluator_name_to_enum_
inlinestaticprivate
Initial value:

Definition at line 28 of file player_input_translator.hpp.

◆ piece_color_name_to_enum_

const std::unordered_map<std::string, gameboard::PieceColor> game::PlayerInputTranslator::piece_color_name_to_enum_
inlinestaticprivate
Initial value:

Definition at line 22 of file player_input_translator.hpp.


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